Solved

vb.net select cell in datagrid

Posted on 2007-11-30
6
1,555 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
DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Creating an analog clock UserControl seems fairly straight forward.  It is, after all, essentially just a circle with several lines in it!  Two common approaches for rendering an analog clock typically involve either manually calculating points with…
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.
This video demonstrates how to create an example email signature rule for a department in a company using CodeTwo Exchange Rules. The signature will be inserted beneath users' latest emails in conversations and will be displayed in users' Sent Items…

919 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now