I have not used the DataGridView that much. I'm writing a Winforms app using
a datagridview bound to a datatable. For reasons too involved to go into,
the grid is not editable. When I need to edit a record, I double-click on a
row and retrieve the keys as follows:
key = <grid name>.CurrentRow.Cells("Column Name").Value.ToString
Then do a find on the datatable and get the datarow.
datarow = datatable.Find(key)
Is this the simplest way to relate the datagridview and the datasource or is
there something simpler?