I am currently doing the following to get the key of the row selected in my grid.
this.grdCustomers[grdCustomers.CurrentRowIndex, 0];string CustomerID =
I have seen that there is a way in visual basic to use the column name "ID" instead of an index value. Something like this:
grdCustomers.selectedRow["ID"]
Is it possible to do this in C#. That way if the grid column order is changed it won't affect my code.