Home > Net > In c # on DataGridView refresh, select the refresh before the selected value
In c # on DataGridView refresh, select the refresh before the selected value
Time:10-10
Now have a refresh, but after the refresh automatically jump back to the first line, hope to get good effect is refreshed after selected to refresh before the line,
CodePudding user response:
Save the selected data (such as a number), after the reload, data binding event, find the corresponding data,
CodePudding user response:
When the selected you can get to the line of the index, with a variable record this value preserved, refresh later made comparison according to the index or other marks selected
CodePudding user response:
Refresh the record before the selected rows continue to selected after refresh