RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TDecisionGrid.OnDecisionExamineCell Event

Occurs when the user right-clicks on a cell in the data region of the grid.

Pascal
property OnDecisionExamineCell: TDecisionExamineCellEvent;
C++
__property TDecisionExamineCellEvent OnDecisionExamineCell;

Write an OnDecisionExamineCell event handler to take specific action when the user right-clicks on one of the cells that contains summarized data. The ICol and IRow parameters indicate the column and row indexes of the cell. The column and row indexes specify the value 0 for the top or leftmost cell in the scrollable data region, not the top left cell of the decision grid. The ISum parameter is the index of the current summary in the decision cube, where the first active summary has an index of 0. The ValueArray parameter gives the coordinates of the cell in terms of the dimensions of the decision source. If the cell represents a subtotal value, the entry in the ValueArray for the dimension over which the subtotal is calculated is a negative number. 

Use the Cells property to obtain the value of the summary in the cell. Use the GetDimensionName method of the decision source to get the name of each dimension represented by an entry in the ValueArray parameter. Use the GetValueAsString or GetValueAsVariant method of the decision source to obtain the label values for each dimension represented in the ValueArray parameter. 

 

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