Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Datagrid: Retreiving a value from a column
Message
 
To
07/10/2002 18:34:38
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Quebec, Canada
General information
Forum:
ASP.NET
Category:
Forms
Miscellaneous
Thread ID:
00708298
Message ID:
00708565
Views:
9
This message has been marked as the solution to the initial question of the thread.
Once the data is sorted, you have to go through binding context object. Here is how.
BindingManagerBase loBindingManager = this.dataGrid1.BindingContext[this.dataGrid1.DataSource, this.dataGrid1.DataManager]; 
 
DataRow loCurrentDataRow = ((DataRowView)loBindingManager.Current).Row; 
>Thank you for your help,
>The problem is that when I re-sort the datagrid according to a column header, the row number changes. Is there a way to get the row number independant of the sort order of the grid? Or better, Is there a way to retreive the value of a specific (not necessarely the current) column bounded to a datagrid?
>
>Thank's again!
- Jayesh
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform