Object Reference > True DBGrid Properties > VScrollWidth Property |
Returns the vertical scroll bar width, if present.
object.VScrollWidth
Read-only at run time. Not available at design time.
The VScrollWidth property returns the width of a split's vertical scroll bar in container units, which depend on the ScaleMode (Visual Basic) of the container. If no vertical scroll bar exists, then the returned value is zero. If object is a TDBGrid control, then its current split is used.
You can use the VScrollWidth and HScrollHeight properties to check if the scroll bars are present and to obtain the scroll bar size when designing the grid layout and sizing the grid and its columns.