referencing child gridview values

T

Trevor Bezotte

Hi,

I have a Gridview (Gridview2) which changes its content (row details from
Gridview1) when a row is selected in Gridview1. I want to retrieve the
values (specifically the values foo_id and blee_id) from Gridview2 in the
GridView1_SelectedIndexChanged event. Is this possible? How do I do this?

BTW, Gridview1 has SQLDatasource1 as its datasource and Gridview2 has
SQLDatasource2 as its datasource, SQLDatasource2 has a couple of parameters
which get their values from Gridview1's selectedvalue and
selectedDataKey[1].

Sincerely,
Scratchin my head
 
T

Trevor Bezotte

i figured it out, the values i want can actually be retrieved from gridview1 as
GridView1.SelectedValue.ToString

GridView1.SelectedDataKey(1).ToString

Thank you!
 

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
474,265
Messages
2,571,069
Members
48,771
Latest member
ElysaD

Latest Threads

Top