Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TcxCustomGridTableView.OnGetCellHeight Event

In This Article

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

#Declaration

Delphi
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