Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to find a value in a column
Message
From
22/05/2007 18:15:31
John Baird
Coatesville, Pennsylvania, United States
 
General information
Forum:
ASP.NET
Category:
Forms
Environment versions
Environment:
C# 2.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01227734
Message ID:
01227778
Views:
20
>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
Map
View

Click here to load this message in the networking platform