Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Returning row position
Message
De
27/08/2004 11:29:27
 
 
À
27/08/2004 11:18:57
Mike Cole
Yellow Lab Technologies
Stanley, Iowa, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00937029
Message ID:
00937034
Vues:
12
Hi, Mike,

What you need to do is set the position of the grid's binding manager to the row you want.
nPosition = \\ row position from your exit sub
BindingManagerBase bMgr =  dataGrid1.BindingContext[dataGrid1.DataSource,dataGrid1.DataMember];
bMgr.Position = nPosition;
Now, because the grid may be sorted on a particular row,you need to use the table's DefaultView when setting the grid's datasource, and also when you scan through the rows. Otherwise your 'offset' will be out of synch.

Hope that helps...
Kevin
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform