TopLine

[property icon] TopLine

Specifies the style for the horizontal line above the cell

Enumerated type, possible values are:

Default
NoLine
NormalLine
SolidLine
ThickLine
Join

Applies to: Grid , GridCell


>TopLine

TopLine

This property is used to change the line type for the separator line that appears to the top of the current cell or cells specified by the Cell() method. It can also be used to join two cells together vertically. See also the LeftLine property.

Available types are:

DefaultDefault behaviour. If applied to a cell, then any non-default style for the row or column or whole grid is used instead. If all these are Default, then the behaviour is the same as NormalLine.
NormalLineUse the normal thin separator line
SolidLineUse a bolder version of NormalLine but keep the same thickness
ThickLineUse a thicker, bolder separator line
NoLineNo separator line
JoinConsolidate the two separated cells into one

For example, the following would change the line to the top of all cells in row 4 to be a thick line:

.GridControl1.Cell(4, 0).TopLine = &.ThickLine

See also

Grid methods, properties and events. GridCell methods, properties and events.