Skip to main content

Access Cell Values

In most cases you need to access a cell’s contents when handling specific events (for instance, OnGetDisplayText, OnCustomDrawCell, etc). The pivot grid’s events provide the event parameters which allow you to obtain the contents (value and display text) of the currently processed cell.

To get a cell’s contents at any time, you can use the pivot grid’s ViewData.Cells and ViewData.CellsAsText properties. These properties provide members to get the cell’s display value, calculated summary values for this cell, etc.

For information on how to access the records from the data source which correspond to a specific cell, refer to the Get Underlying Data topic.

See Also