HeaderHeight |
Top Previous Next |
Gets or sets the header height in pixels for the grid.
Remarks The default value is 20. The height of grid title is calculated with the formula below, HT means the height of the grid title (the length of red bar in the image below), HG means the height of grid control (the length of blue bar in the image below). HT = HG - RowHeight * RowsCount - HeaderHeight
If the condition below holds true: (RowsCount * RowHeight + 1.5 * HeaderHeight) >= HG
then RowHeight is reduced with the formula below, the purpose of the adjustment is to ensure that the height of grid title (HT) is equal to or greater than the half of header height. RowHeight = (HG - 1.5 * HeaderHeight) / RowsCount;
|