General information
Title:
Bindingcontext position and datatable.row
I'm trying to use a form's BindingContext.Position in a grid to correctly locate a matching Datatable.Row(), BUT...
When I first bind a grid, these match one-for-one. But if I click on a column header and resort the column, the Bindingcontext.Position changes to a new number based on the new sorting order. So a .Position that was previously at 1 could now be at .Position=512, which goes out of sync with the datatable, which keeps the original DataTable.Row at 1.
Does anyone know a way to directly access the correct datarow using BindingContext.Position? Or must I use other techniques?
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only