Click here to Skip to main content
16,004,686 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
I'hv used gridview to show some information. Grid having coloums like Name, startdate,enddate...... But when user click on one of the name in that gridview, I'hv to show detailed information. I'hv database queries for that and i want to show that in collapsiblePanelExtender or just i want to show that detailed information that may be in another grid, how can i show.
Posted

There are several ways and it's pretty dependent on your own likings.
As you mentioned you can show more details in a separate GridView.
You could also fill simple TextBoxes with the detailed data.

Another way is to use a DataList Control. With the SelectedItem Template you could show additional informations of the selected row in the DataList.
Refer to e.g. http://authors.aspalliance.com/aspxtreme/webforms/controls/allowinguserstoselectitemsindatalist.aspx[^]
 
Share this answer
 
v2
You should put the Child Gridview inside the template of parent Gridview.

Editable Nested GridView (All-in-One)[^]

For more[^]
 
Share this answer
 
Gridview inside Gridview in asp.net C#[^]

Its really a wonderful and easy help.. Have a look on this link.
 
Share this answer
 
Comments
Legor 25-May-11 2:36am    
Of course its wonderful and easy because its from yourself ;)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900