Link to home
Start Free TrialLog in
Avatar of bergertime
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
Avatar of surajguptha
surajguptha
Flag of United States of America image

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
Avatar of bergertime
bergertime

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
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
Avatar of surajguptha
surajguptha
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks