Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Datagrid: Retreiving a value from a column
Message
 
À
07/10/2002 18:34:38
Christian Cote
Les Logiciels Onoma Inc.
Longueuil, Québec, Canada
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Divers
Thread ID:
00708298
Message ID:
00708565
Vues:
11
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform