Heading
Heading$
Specifies heading text for columns
String property
This property is used to set the heading text for the specified column. This property should be used in conjunction with the FixedRows property to place a fixed heading at the the top of each column. Headings remain visible if the control is scrolled or if the contents of a column is cleared or if the contents of the whole grid is cleared with the Clear() method.
To set a heading for a column the Cell() method is used to position to the relevant column. For example, the following would set the heading for column 6:
.GridControl1.FixedRows = 1 .GridControl1.Cell(0, 6).Heading$ = "A Nice Heading"
This property should be used rather than just setting Text$ for the fixed columns so that Clear() can be used to clear the grid contents but preserve the headings. Clear() and Reset() will ignore text set with Heading$ but Reset(1) will blank any Heading$ properties. It also allows Type$ to be set for a column without any effect on the heading.