Master-Detail - Master-Detail



Drag a column header here to group by that column
Contact Name
Company Name
City
Country
Maria AndersAlfreds FutterkisteBerlinGermany
Ana TrujilloAna Trujillo Emparedados y heladosMéxico D.F.Mexico
Antonio MorenoAntonio Moreno TaqueríaMéxico D.F.Mexico
Thomas HardyAround the HornLondonUK
Christina BerglundBerglunds snabbköpLuleåSweden
Hanna MoosBlauer See DelikatessenMannheimGermany
Frédérique CiteauxBlondel père et filsStrasbourgFrance
Martín SommerBólido Comidas preparadasMadridSpain
Laurence LebihanBon app'MarseilleFrance
Elizabeth LincolnBottom-Dollar MarketsTsawwassenCanada
Page 1 of 10 (91 items)
Prev
[1]
2
3
4
5
6
7
8
9
10
Next
Description
C#
VB
ASPX

The ASPxGridView 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:

  • Create two ASPxGridView controls
  • Bind the first grid (master grid) to the master data source and enable its SettingsDetail.ShowDetailRow option.
  • Bind the second grid (detail grid) to the detail data source and enable its SettingsDetail.IsDetailGrid option.
  • Create the DatailRow 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 several 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 box. Once enabled, only one detail row can be displayed at a time.