|
-
Jul 26th, 2008, 05:24 AM
#1
Thread Starter
Lively Member
How to find a DataGridViewRow matching a datarow?
If the DataGridView is binded to a BindingSource, whic is in turn binded to a DataTable.
Now I need to set a row in DataGridView as be selected. I know how to do this if I get the DataGridViewRow and set its selected property as True.
But I need to pick one or several rows matching some filter criteria, and set as selected. Because DataGridView does not provide select function, I have to use the DataTable.Select to retrieve the right rows I want.
Here comes the problem, after I get this DataRow(), how can I set them selected in DataGridView?
Last edited by sunhpj; Jul 26th, 2008 at 06:11 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|