[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1625
  • Last Modified:

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
0
bergertime
Asked:
bergertime
  • 3
  • 3
1 Solution
 
surajgupthaCommented:
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
0
 
bergertimeAuthor Commented:
And that is going to put the text of the cell in a label.text or textbox.text.?
0
 
surajgupthaCommented:
If that label is also a part of the grid. Yes
0
Free learning courses: Active Directory Deep Dive

Get a firm grasp on your IT environment when you learn Active Directory best practices with Veeam! Watch all, or choose any amount, of this three-part webinar series to improve your skills. From the basics to virtualization and backup, we got you covered.

 
bergertimeAuthor Commented:
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.
0
 
surajgupthaCommented:
0
 
bergertimeAuthor Commented:
Thanks
0

Featured Post

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now