Hi all, coding C# in VS.NET 2003
I'm databinding a recordset to a datagrid and when the user selects a row in the grid I need to return the primary key value. What I've been doing is just using the CurrentRowIndex and getting that record from the DataSet. It's been working fine but then I tried sorting the records and it no longer works because now the row indexes in the grid do not reflect the indexes in the dataset.
I'm wondering if DataGrids have a value property similar to a combo box OR if there is a better way of accomplishing my goal.