Object Reference > True DBGrid Properties > AllowSizing Property |
AllowSizing Property
Enables interactive resizing for a column or split.
object.AllowSizing= boolean
Read/Write at run time and design time.
If True, the user can resize the column or split.
If False, the user cannot resize the column or split.
For columns, AllowSizing defaults to True. For splits, AllowSizing defaults to False.
If AllowSizing is True for a column, the mouse pointer turns into a double-headed arrow when positioned over that column's divider within the column heading area, and the user can resize the column by dragging. Any change in column size causes a ColResize event.
For the leftmost split with AllowSizing set to True, the mouse pointer turns into a pair of vertical lines with a downward arrow when positioned over that split's size box (at the lower left corner), and the user can create a new split by dragging. The creation of a new split causes a SplitChange event.
If AllowSizing is True for any other split, the mouse pointer turns into a pair of vertical lines with a double-headed arrow when positioned over that split's size box, and the user can resize the split by dragging. No event is fired in this case (except for the standard mouse events).