Grid - Master-Detail Simple Master-Detail View


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

Order Id
Order Date
Ship Name
Unit Price
Quantity
Total
106439/25/1995Alfreds Futterkiste$45.6015$684.00
106439/25/1995Alfreds Futterkiste$18.0021$378.00
106439/25/1995Alfreds Futterkiste$12.002$24.00
1069211/3/1995Alfred's Futterkiste$43.9020$878.00
1070211/13/1995Alfred's Futterkiste$10.006$60.00
1070211/13/1995Alfred's Futterkiste$18.0015$270.00
108352/15/1996Alfred's Futterkiste$55.0015$825.00
108352/15/1996Alfred's Futterkiste$13.002$26.00
109524/15/1996Alfred's Futterkiste$25.0016$400.00
109524/15/1996Alfred's Futterkiste$45.602$91.20
    Sum=174Sum=$4,596.20
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 HornLondonUK
[Expand]Christina BerglundBerglunds snabbköpLuleåSweden
[Expand]Hanna MoosBlauer See DelikatessenMannheimGermany
[Expand]Frédérique CiteauxBlondel père et filsStrasbourgFrance
[Expand]Martín SommerBólido Comidas preparadasMadridSpain
[Expand]Laurence LebihanBon app'MarseilleFrance
[Expand]Elizabeth LincolnBottom-Dollar MarketsTsawwassenCanada
Page 1 of 10 (91 items)Prev12345678910Next

With only one line of code per line of detail, you can build master-detail layouts of any complexity - with any number of nesting levels and any number of details at each level. The ASPxGridView does not limits how information is displayed for detail records - Detail Rows can display any type of information, including collapsible row preview sections.

This demo illustrates how to easily create a simple master-detail relationship between two tables. 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: v2014 vol 2.3
Copyright © 2006-2014 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 info@devexpress.com or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.