Gridview and SelectCommand data retrieval...

R

RGF

I have a GridView control which is binded to a dataset object, I am
able to populate the GridView with the expected data, so that is ok.
I enabled the Selection function from the GridView, which works as
expected. So I end up with a table made of 6 rows and 4 columns.

The problem to solve is:
I would like to retrieve the values say from Row 3, Column 1 and
Column 4, and plug the respective value into a text box.

pseudo code example once row 3 is selected:

textbox1.text = GridView(row(3),column(1))

textbox2.text = GridView(row(3),column(4))


The question:
What is the proper VB.net method syntax to extract the values from the
selected row?


thanks in advanced!
Ralph
 
R

RGF

I have a GridView control which is binded to a dataset object, I am
able to populate the GridView with the expected data, so that is ok.
I enabled the Selection function from the GridView, which works as
expected. So I end up with a table made of 6 rows and 4 columns.

The problem to solve is:
I would like to retrieve the values say from Row 3, Column 1 and
Column 4, and plug the respective value into a text box.

pseudo code example once row 3 is selected:

textbox1.text = GridView(row(3),column(1))

textbox2.text = GridView(row(3),column(4))

The question:
What is the proper VB.net method syntax to extract the values from the
selected row?

thanks in advanced!
Ralph

To be more specific, I am using VS 2005, ASP.Net 2.0, and VB.Net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,226
Members
46,815
Latest member
treekmostly22

Latest Threads

Top