Results 1 to 6 of 6

Thread: How to find a DataGridViewRow matching a datarow?

Threaded View

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jun 2008
    Posts
    110

    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
  •  



Click Here to Expand Forum to Full Width