Free Trial Buy Now

Grid View - Master-Detail

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

Order ID
Order Date
Ship Name
Quantity
Unit Price
Total
106438/25/1997Alfreds Futterkiste15$45.60$684.00
106438/25/1997Alfreds Futterkiste21$18.00$378.00
106438/25/1997Alfreds Futterkiste2$12.00$24.00
110114/9/1998Alfred's Futterkiste40$13.25$530.00
110114/9/1998Alfred's Futterkiste20$21.50$430.00
1069210/3/1997Alfred's Futterkiste20$43.90$878.00
1070210/13/1997Alfred's Futterkiste6$10.00$60.00
1070210/13/1997Alfred's Futterkiste15$18.00$270.00
108351/15/1998Alfred's Futterkiste15$55.00$825.00
108351/15/1998Alfred's Futterkiste2$13.00$26.00
   Sum=174 Sum=$4,596.20
Page 1 of 2 (12 items)
Prev
1
2
Next
[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 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)
Prev
1
2
3
4
5
6
7
8
9
10
Next

Description

The MVC Grid View supports master-detail data presentation of any complexity.

This demo shows how to create a simple master-detail relationship between two tables. All you have to do is to:

  • Use two Grid View extensions.
  • Bind the first grid (master grid) to the master data source and enable the grid's SettingsDetail.ShowDetailRow option.
  • Place the second grid (detail grid) into the master grid's detail row template created via the SetDetailRowTemplateContent method.
  • Assign a unique (dynamically generated) name to the Name property of the detail grid and set its SettingsDetail.MasterGridName property to the master grid's name.
  • Bind the detail grid to the detail data source whose data is retrieved in a controller action based upon the corresponding master row ID passed via a ViewData parameter.

By default, end-users can expand several master rows simultaneously. This behavior is controlled by the SettingsDetail.AllowOnlyOneMasterRowExpanded option.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress MVC Extensions ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.