J
James Page
Hi all
I have a nested detailsView in a gridView.
What I’m trying to do is display values derived from the row in the gridview
and pass the row id to the detailsview to produce something like:
Gridview item 1
Detailsviewitem1
Detailsviewitem2
Detailsviewitem3
GridviewItem 2
Detailsviewitem1
Detailsviewitem2
Etc...
The data (SQL) is stored like so:
GridView data
Id
Name
DetailsView Data
Id
GridviewId
Text
What i need to do is pass the gridviewRow id to the detailsview and display
matching data without the need for using selected row.
I’m sure i need a for each loop but how do I retrieve the gridview row id
and pass this variable to the datasource for the detailsview and show only
data where the gridview id matches the gridviewId in the detailsview table?
Thanks
I have a nested detailsView in a gridView.
What I’m trying to do is display values derived from the row in the gridview
and pass the row id to the detailsview to produce something like:
Gridview item 1
Detailsviewitem1
Detailsviewitem2
Detailsviewitem3
GridviewItem 2
Detailsviewitem1
Detailsviewitem2
Etc...
The data (SQL) is stored like so:
GridView data
Id
Name
DetailsView Data
Id
GridviewId
Text
What i need to do is pass the gridviewRow id to the detailsview and display
matching data without the need for using selected row.
I’m sure i need a for each loop but how do I retrieve the gridview row id
and pass this variable to the datasource for the detailsview and show only
data where the gridview id matches the gridviewId in the detailsview table?
Thanks