Solved

vb.net select cell in datagrid

Posted on 2007-11-30
6
1,592 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Webinar: Aligning, Automating, Winning

Join Dan Russo, Senior Manager of Operations Intelligence, for an in-depth discussion on how Dealertrack, leading provider of integrated digital solutions for the automotive industry, transformed their DevOps processes to increase collaboration and move with greater velocity.

 
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

Major Incident Management Communications

Major incidents and IT service outages cost companies millions. Often the solution to minimizing damage is automated communication. Find out more in our Major Incident Management Communications infographic.

Question has a verified solution.

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

Suggested Solutions

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

734 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