Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to find a value in a column
Message
De
22/05/2007 18:15:31
John Baird
Coatesville, Pennsylvanie, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Versions des environnements
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01227734
Message ID:
01227778
Vues:
18
>I'm using a DataGridView control.
>
>I have populated the grid from a table in my database.
>
>I would like to initially select a row in the grid. Is there any simple method for searching for a value in a column other than manually searching for the value row by row?
>
>Thanks,
>Jim

If you know the primary key of the record you wish to select, you can do a datatable.Find(), get the row number from the table, then do a datagird.select() to position the record.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform