RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TCustomDecisionGrid.Cells Property

Provides indexed access to the values of all cells in the decision grid.

Pascal
property Cells [ACol, ARow: Integer]: String;
C++
__property AnsiString Cells[int ACol, ARow];

Use Cells to obtain the value of a cell in the grid, formatted as a string. The ACol and ARow parameters indicate the column and row indexes of the cell, where (0,0) indicates the top left cell of the data region (not the top left cell of the grid). Cells that have been closed up using the Display Data or Display SubTotals menu items are still counted even though they are not visible. 

If the cell is a row or column caption (negative value for ACol or ARow), Cells returns the name of the dimension. If the cell is a row or column label, Cells returns the field value of the dimension field. If the cell is a subtotal label, Cells returns the string Sum. If the cell is in the data region of the grid, Cells returns the summarized value. 

 

Copyright(C) 2008 CodeGear(TM). All Rights Reserved.
What do you think about this topic? Send feedback!