Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Bindingcontext position and datatable.row
Message
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Bindingcontext position and datatable.row
Miscellaneous
Thread ID:
00748036
Message ID:
00748036
Views:
95
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
Map
View

Click here to load this message in the networking platform