MasterRowGetRelationCountEventArgs.RelationCount Property

Gets or sets the number of relations for the master row.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v20.1.dll

Declaration

public int RelationCount { get; set; }
Public Property RelationCount As Integer

Property Value

Type Description
Int32

An integer value specifying the number of relations for the master row.

Remarks

Initially, the RelationCount property contains the default number of relations specified by the grid control's data source. You can change this value to specify your own number of relations. For instance, you can provide detail data manually by handling the GridView.MasterRowGetChildList event while the data source actually has no detail data. To do so, set the RelationCount to a positive value specifying the number of details for the current row. In this case, the GridView.MasterRowEmpty and GridView.MasterRowGetRelationName events will also be raised for each row the number of times specified by the relation number.

See Also