Skip to main content

TcxCustomGridTableView.OnGetCellHeight Event

Allows you to adjust the height of any visible cell in the grid Table View.

Declaration

property OnGetCellHeight: TcxGridGetCellHeightEvent read; write;

Remarks

This event occurs every time the grid View calculates the height of a cell and is about to draw it.

The Sender parameter provides access to the grid View that raised an OnGetCellHeight event.

Use the ARecord and AItem parameters to identify which cell the Sender grid View is about to draw. The ACellViewInfo parameter provides access to the calculated ViewInfo information for the target cell.

You can use the AHeight parameter to:

  • Identify the calculated pixel height of the target cell.

  • Assign a new height for the cell.

Note

The OnGetCellHeight event does not occur if either of the following conditions is met:

In a Banded Table View, the OnGetCellHeight event occurs only for those cells that occupy a single row by height.

See Also