bergertime
asked on
vb.net select cell in datagrid
I have a datagrid that looks like this:
1 a
2 b
3 c
When a user selectes the cell that 'b' is in I want to populate a label with that value. I need it to do that for all the cells, not just 'b'.
Thanks
1 a
2 b
3 c
When a user selectes the cell that 'b' is in I want to populate a label with that value. I need it to do that for all the cells, not just 'b'.
Thanks
On click of the cell goto the datasource that you are binding to the grid and copy all the values in the abc column to the 123 columsn and bind the datasource back to the grid
ASKER
And that is going to put the text of the cell in a label.text or textbox.text.?
If that label is also a part of the grid. Yes
ASKER
I guess my question wasn't clear.....the label or textbox (the control) is not part of the grid. I want the user to be able to click on a cell in a datagrid and whatever is in that cell will populate a control outside the datagrid.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks