cxGrid的Row和Record的区别

1、默认、排序、过滤、分组,都相等,注意的是分组时取的是分组页面行数(即:分组都不展开就是分组数,展开的就是展开的+分组数)

   cxGrid1DBTableView1.ViewData.RowCount;
   cxGrid1DBTableView1.ViewData.RecordCount;


Note: Do not confuse the View  Controller.FocusedRecordIndex and DataController.FocusedRecordIndex properties. The former specifies the row index of the focused record, i.e. the record  visual position (this is equivalent to the Index property of the Controller.FocusedRecord object and to the TcxCustomDataController.FocusedRowIndex property). The latter specifies the record index of the focused record, i.e. the position of the record in the data controller/dataset (this is equivalent to the RecordIndex property of the Controller.FocusedRecord object).

with (Sender as TcxGridDBTableView).Controller do
    FocusedRowIndex := TopRowIndex;

TcxCustomGridTableView.DataController

TcxCustomGridTableView

Provides access to the data controller that manages the current View抯 data.

 

property DataController: TcxGridDataController;

 

Description

Use the DataController property to access the object managing the grid View's connection to a data store. A data controller object implements the retrieval and posting of data, applies grouping, filtering, and calculates summaries.


TcxCustomGridTableView.Controller

TcxCustomGridTableView

Provides access to the controller associated with the View.

 

property Controller: TcxCustomGridTableController;

 

Description

Use the Controller property to access the View抯 controller functionality. It enables you to do the following:

  • Control the editing of a record cell;

  • Set focus to a specific item (column in a Table View or card in a Card/Layout View) and record;

  • Start/cancel an incremental search;

  • Access the collection of selected records;

  • Perform scrolling;

  • Navigate records and items.

 

The TcxCustomGridTableController class provides properties and members common to both (Banded) Table Views and Card Views.

 

ReadOnly Property


(cxGrid1DBTableView1.Controller.FocusedRowIndex = cxGrid1DBTableView1.ViewData.RowCount - 1)



你可能感兴趣的:(cxGrid)