Skip to main content

TcxGridViewData Class

This is an intermediate class providing an interface or bridge between a data controller and a grid View.

Declaration

TcxGridViewData = class(
    TcxCustomGridTableViewData
)

Remarks

The TcxGridViewData class retrieves data from a data controller and presents it as an array of rows to a View. Use the View’s ViewData property to get attributes of the associated ViewData object.

The collection of records provided by the TcxGridViewData class is supported by the Rows property. Every row represents an object of the TcxCustomGridRow class allowing you to access different attributes relating to a row (an array of values corresponding to record fields, level of a record and others).

A ViewData object represents the records displayed within a View (i.e. does not include those hidden within collapsed records). There are several types of records derived from TcxCustomGridRow:

  • A data row which displays cells with record values corresponding to item (column) fields.

  • A master data row represents a data row in a master View.

  • The new item row is a special row for entering new data.

  • A group row is a row displaying the column value by which data are grouped (and displaying group summaries, if any)

For more information refer to the TcxCustomGridRecord class, which is a base class for TcxCustomGridRow.

See Also