Loop through datagridview control to find value

tcl4p

Well-known member
Joined
Feb 29, 2008
Messages
48
Programming Experience
1-3
I have a gridview control and after it gets loaded I want to find a value in one of the hidden columns that matches a value that has been passed to the form. If the value in the column matches the value passed to the form then select/highlight the row.
I did a google search but can't seem to find the correct syntax. I wasn't sure if I have to use a for each loop or if there's a "find" function that can be used.
If someone has a code example on how do this I would appreciate it if you could post it.

Thanks,
Tom
 
Back
Top