Object Reference > True DBGrid Properties > BorderType Property |
BorderType Property
Controls which, if any, cell borders are displayed.
object.BorderType= value
Values
Design Time |
Run Time |
0 - None (default) |
dbgBorderNone |
1 - Left |
dbgBorderLeft |
2 - Right |
dbgBorderRight |
4 - Top |
dbgBorderTop |
8 - Bottom |
dbgBorderBottom |
Read/Write at run time and design time.
When this property is set to 0 - None, no Borders will be displayed for a cell.
When this property is set to 1 – Left paints the border on the left.
When this property is set to 2 – Right paints the right cell border.
When this property is set to 4 – Top paints the top cell border.
When this property is set to 8 – Bottom paints the bottom cell border.
This property can be set to any combination of the above options. For example, to have a cell border on all sides of a cell you can set the BorderType property to dbgBorderLeft+dbgBorderRight+dbgBorderTop+dbgBorderBottom.