Passing DataGridView record

Hello,

Using VS2005, I created a dataset that grabs some data and populates it in a datagridview, is it possible to capture the highligted record and then write some code to a button that will pass that data to another form

so

1)Load list
2)Select Record
3)Press Button

So far so good but now I need to know how to capture the record that is highlited.

Please can someone help

Regards,

Pace




Answer this question

Passing DataGridView record

  • Brad Raulston

    im not too sure how to be able to take something from that though and then pass that info to another form :-S

    Ill change the UI I think :-)

    Thanks all the same =)



  • Zaid Vb

    Use the *selectedRows* method of the datagridview...

    Me.DataGridView1.SelectedRows



  • Passing DataGridView record