Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Simple Master-Detail View

Contact Name 
Company Name 
City 
Country 
CollapseMaria AndersAlfreds FutterkisteBerlinGermany
  Contact Phone: 030-0074321 , Fax: 030-0076545

Order Id 
Order Date 
Ship Name 
Unit Price 
Quantity 
Total 
110114/9/2020Alfred's Futterkiste$13.2540$530.00
110114/9/2020Alfred's Futterkiste$21.5020$430.00
1069210/3/2019Alfred's Futterkiste$43.9020$878.00
1070210/13/2019Alfred's Futterkiste$10.006$60.00
1070210/13/2019Alfred's Futterkiste$18.0015$270.00
106438/25/2019Alfreds Futterkiste$45.6015$684.00
106438/25/2019Alfreds Futterkiste$18.0021$378.00
106438/25/2019Alfreds Futterkiste$12.002$24.00
108351/15/2020Alfred's Futterkiste$55.0015$825.00
108351/15/2020Alfred's Futterkiste$13.002$26.00
    Sum=174Sum=$4,596.20
Page 1 of 2 (12 items)Prev12Next
ExpandAna TrujilloAna Trujillo Emparedados y heladosMéxico D.F.Mexico
ExpandAntonio MorenoAntonio Moreno TaqueríaMéxico D.F.Mexico
ExpandThomas HardyAround the HornLondonUnited Kingdom
ExpandChristina BerglundBerglunds snabbköpLuleåSweden
ExpandHanna MoosBlauer See DelikatessenMannheimGermany
ExpandFrédérique CiteauxBlondesddsl père et filsStrasbourgFrance
ExpandMartín SommerBólido Comidas preparadasMadridSpain
ExpandLaurence LebihanBon app'MarseilleFrance
ExpandElizabeth 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 master-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.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxGridViewDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxGridViewDemos