John Baird
Coatesville, Pennsylvanie, États-Unis
Versions des environnements
Network:
Windows 2003 Server
>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement