How to find a Record Id in DataGrid ?

  • Thread starter Thread starter Eugene
  • Start date Start date
E

Eugene

Hello,
I'm stuck with this question:
Lets say I have a DataView with 10 columns, 5 out of which are
displayed in DataGrid. Record Id is not displayed - so how do I
figure out the Record Id of currently selected row in DataGrid ?
Thanks a lot.
 
Reference the column number of the view that the grid's bound to. Remember
that all the grid is is a UI tool to manipulate the data underneath it. So
for instance, if your grid is bound to MyDatView. and you use CurrentCell
to determine the row you are in in the grid, you can reference the DataViews
position with the same number and check what 6th, 7th, 8th etc column values
are.

HTH,

Bill
 
Back
Top