Solved

vb.net select cell in datagrid

Posted on 2007-11-30
6
1,577 Views
Last Modified: 2013-11-26
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
Comment
Question by:bergertime
  • 3
  • 3
6 Comments
 
LVL 21

Expert Comment

by:surajguptha
ID: 20384535
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
 
LVL 2

Author Comment

by:bergertime
ID: 20384641
And that is going to put the text of the cell in a label.text or textbox.text.?
0
 
LVL 21

Expert Comment

by:surajguptha
ID: 20385009
If that label is also a part of the grid. Yes
0
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
LVL 2

Author Comment

by:bergertime
ID: 20385086
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
 
LVL 21

Accepted Solution

by:
surajguptha earned 500 total points
ID: 20389465
0
 
LVL 2

Author Closing Comment

by:bergertime
ID: 31412007
Thanks
0

Featured Post

Resolve Critical IT Incidents Fast

If your data, services or processes become compromised, your organization can suffer damage in just minutes and how fast you communicate during a major IT incident is everything. Learn how to immediately identify incidents & best practices to resolve them quickly and effectively.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.

856 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question