Grid - Master-Detail Simple Master-Detail View

Contact Name 
Company Name 
[Collapse]Maria AndersAlfreds FutterkisteBerlinGermany
  Contact Phone: 030-0074321, Fax: 030-0076545

Order Id 
Order Date 
Ship Name 
Unit Price 
110114/9/1998Alfred's Futterkiste$13.2540$530.00
110114/9/1998Alfred's Futterkiste$21.5020$430.00
1069210/3/1997Alfred's Futterkiste$43.9020$878.00
1070210/13/1997Alfred's Futterkiste$10.006$60.00
1070210/13/1997Alfred's Futterkiste$18.0015$270.00
106438/25/1997Alfreds Futterkiste$45.6015$684.00
106438/25/1997Alfreds Futterkiste$18.0021$378.00
106438/25/1997Alfreds Futterkiste$12.002$24.00
108351/15/1998Alfred's Futterkiste$55.0015$825.00
108351/15/1998Alfred's Futterkiste$13.002$26.00
Page 1 of 2 (12 items)Prev12Next
[Expand]Ana TrujilloAna Trujillo Emparedados y heladosMéxico D.F.Mexico
[Expand]Antonio MorenoAntonio Moreno TaqueríaMéxico D.F.Mexico
[Expand]Thomas HardyAround the HornLondonUnited Kingdom
[Expand]Christina BerglundBerglunds snabbköpLuleåSweden
[Expand]Hanna MoosBlauer See DelikatessenMannheimGermany
[Expand]Frédérique CiteauxBlondesddsl père et filsStrasbourgFrance
[Expand]Martín SommerBólido Comidas preparadasMadridSpain
[Expand]Laurence LebihanBon app'MarseilleFrance
[Expand]Elizabeth LincolnBottom-Dollar MarketsTsawassenCanada
Page 1 of 10 (91 items)Prev12345678910Next

With the DevExpress ASP.NET GridView (ASPxGridView), you can build master-detail layouts of any complexity - with unlimited nesting. The GridView does not place any limits on your creativity and allows you to display detail records within its mater-detail layout in a format most suitable for your business needs (including the ability to display collapsible row preview sections).

This demo illustrates how to visualize a simple master-detail relationship between two tables inside the GridView. To get started, do the following:

  • Create two ASPxGridView controls
  • Bind the first grid (the master grid) to the master data source and enable its SettingsDetail.ShowDetailRow option.
  • Bind the second grid (the detail grid) to the detail data source.
  • Create the DetailRow template for the master grid and place the detail grid onto it.
  • Finally, handle the detail grid's BeforePerformDataSelect event and specify session values.

By default, end-users can expand multiple master rows simultaneously. This behavior is controlled by the SettingsDetail.AllowOnlyOneMasterRowExpanded option. In this demo, this option is enabled via the “Keep a single expanded row at a time” check box. Once enabled, only one detail row will be displayed at a time.

Version: v2015 vol 2.9
Copyright © 2006-2016 Developer Express Inc
Your Next Great ASP.NET App Starts Here

Get started today and download your 30-day trial of ASP.NET Controls and Libraries (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress ASP.NET distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress ASP.NET Controls and Libraries ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.