Skip to main content

TcxGridMasterDataRow Class

A row in a master View.

Declaration

TcxGridMasterDataRow = class(
    TcxGridDataRow
)

Remarks

When representing master/detail relationship in ExpressQuantumGrid, two Views should be created (master and detail). These Views display data from the appropriate master and detail tables. The TcxGridMasterDataRow class represents a data row in a master View. It contains data from the master table record. A master data row displays the ‘+’ button at the left enabling a user to expand the detail View. When the detail is expanded, the ‘+’ button is changed into ‘-‘. Clicking the ‘-‘ button results in hiding the detail.

The collection of rows visible within a View is provided by the View’s ViewData.Rows array. This collection references both data rows and group rows.

You can determine the visual position of a row via the Index property. The RecordIndex attribute provides the position of the row within the data source. Refer to the TcxCustomGridRecord class topic to learn more about row indexing.

TcxGridMasterDataRow introduces properties providing the active detail View, the level of the master row and also indexed access to all the detail Views created for the master row. The ActiveDetailIndex property can be used to switch between detail Views. To refer to the first and the last records in a detail View, use the GetFirstFocusableChild and GetLastFocusableChild methods respectively.

Other properties can be used to focus the record, expand/collapse it and select it.

See Also