4
Contributors
7
Replies
8
Views
5 Years
Discussion Span
Last Post by adam_k
0

I guess that you are looking for a particular column in your datagridview.

DataGridView1.Item(0, DataGridView1.SelectedRows.Item(0).Index).Value
0

I have A Datagrid view. And I want the User to be able to select a Row, but when They Select that row is Gets the Value of the 2nd Cell in the 2nd Column and puts it in a TextBox.

0
textbox.text = DataGridView1.Item(1, DataGridView1.SelectedRows.Item(0).Index).Value

Make sure you've disabled multiple rows selection or that you've tested that the results meet your requirements.

0
textbox.text = DataGridView1.Item(1, DataGridView1.SelectedRows.Item(0).Index).Value

Make sure you've disabled multiple rows selection or that you've tested that the results meet your requirements.

Thanks very Much. This Worked ;)

This question has already been answered. Start a new discussion instead.
Take the time to help us to help you. Please be thoughtful and detailed and be sure to adhere to our posting rules.