diamondgeezer1974
Member
Hi all,
Newbie to the forum, so this is my first post!
I'm relatively new to VB.Net, and have a question regarding the DataGridView control.
I have a Form with a DataGridView, which is bound to an underlying table using a BindingSource etc which is working fine.
The App itself is a multiclient app so many people will be adding data to the same table
If I choose to edit data for a row way down in the table and then save the data I want to reload the datatable and refresh the datagridview with my updates and any updates of the other users.
The refresh is easy enough by calling the .Fill method and the Datagridview.Refresh, but doing this causes the DGV control to be redrawn, and the top row then becomes the active row. Is there any easy way round to re-populate the datatable with the new updates, but to keep the record just saved as the current record highlighted in the DGV control rather than having the row highlighter shoot to the top every time?
Regards
DG
Newbie to the forum, so this is my first post!
I'm relatively new to VB.Net, and have a question regarding the DataGridView control.
I have a Form with a DataGridView, which is bound to an underlying table using a BindingSource etc which is working fine.
The App itself is a multiclient app so many people will be adding data to the same table
If I choose to edit data for a row way down in the table and then save the data I want to reload the datatable and refresh the datagridview with my updates and any updates of the other users.
The refresh is easy enough by calling the .Fill method and the Datagridview.Refresh, but doing this causes the DGV control to be redrawn, and the top row then becomes the active row. Is there any easy way round to re-populate the datatable with the new updates, but to keep the record just saved as the current record highlighted in the DGV control rather than having the row highlighter shoot to the top every time?
Regards
DG