Adam Right
Adam Right

Reputation: 171

collapsable master detail gridview structure

I need an advice for a c# asp.net project. My client wants to see some reports via the gridview object with master/detail structure.

The main gridview will be full by all master data and each row will have a + icon (or button) on the first cells. When user clicks this icon, the all details data of that master row should be seen under that master row with collaps action.

I can handle the database proccess but i can not figure out the collapsing part. How can i put some extra rows under the specific row on the gridview object?

Thanks in advance..

Upvotes: 5

Views: 23214

Answers (5)

cjbarth
cjbarth

Reputation: 4469

This is the easiest to use control I've ever run across:

http://code.msdn.microsoft.com/CompleteGridView

Upvotes: 1

parla
parla

Reputation: 11

Here is another good CodeProject blog. Explains multilevel master/detail without JavaScript.

http://www.codeproject.com/KB/aspnet/MultiNestMDGridview.aspx

Upvotes: 1

balexandre
balexandre

Reputation: 75073

Matt Berseth has one of the most impresive tutorials on this kind'a stuff

it contains til now 28 tutorials only on the GridView plus a lot from other asp.net controls as well using jQuery with them. I do learn plenty with him. I really love his work and I just wanna share this with you, you might actually get some good and professional ideas from his code!

Upvotes: 4

Adam Right
Adam Right

Reputation: 171

Thanks but its for updating or inserting. Instead , i have found that page, it seems more effective.

GridView control to show master-child or master-slave data, written in c#, asp.net, and javascript.

Upvotes: 2

SchaeferFFM
SchaeferFFM

Reputation: 324

There is a CodeProject article with downloadable source:

GridView inline Master/Detail record display

Upvotes: 2

Related Questions