John Baird
Coatesville, Pennsylvania, United States
Environment versions
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only