Object Reference > True DBGrid Properties > DividerStyle Property |
DividerStyle Property
This property determines the style of the border drawn on the right edge of a column or the left edge of a split.
object.DividerStyle= value
Values
Design Time |
Run Time |
0 - No dividers (Split default) |
dbgNoDividers |
1 - Black line |
dbgBlackLine |
2 - Dark gray line (Column default) |
dbgDarkGrayLine |
3 - Raised |
dbgRaised |
4 - Inset |
dbgInset |
5 - ForeColor |
dbgUseForeColor |
6 - Light gray line |
dbgLightGrayLine |
7 - Custom Color |
dbgCustomColor |
8 – Double Line |
dbgDoubleLine |
Read/Write at run time and design time.
The DividerStyle property does not control whether a column can be resized by dragging its border. Use the AllowSizing property to control this behavior.
Note
For splits, the setting 0 - No dividers does not eliminate the dividing line at the left edge, but causes it to be drawn as a double line if the user can resize the split, or a solid line if the split's width is fixed. For more information, see Creating and Resizing Splits through User Interaction.