May 11th, 2014, 01:13 PM
Datagridview reselect a previosly selected row after refresh()
Question is how to have it so that the last selected row is reselected again after the refresh... something
string currentlySelected = VersionsGridView.SelectedRows.Cells.Value.ToString());
VersionsGridView.DataSource = Versions.CreateSource();
the RowIndex for the "currentlySelected" should be the same as the datasource file contents don't change, but incase it did how to have it search for the 'currentlySelected ' value and reselect it again if it finds it in the rows?
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!