Visual Basic: DataGrid Control

AllowRowSizing Property

See Also Example Applies To

Returns or sets a value indicating whether a user can resize the rows of the DataGrid control or Split object at run-time.

Syntax

object.AllowRowSizing [=value]

The AllowRowSizing property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A Boolean expression that determines whether a user can resize rows, as described in Settings.

Settings

The settings for value are:

Setting Description
True Rows can be sized by the user.
False Rows can't be sized by the user.

Remarks

If the AllowRowSizing property is True, the mouse pointer turns into a double-headed (Size N S) arrow when positioned over the row divider between any record selectors, and the user can resize the rows by dragging. Any change in row size causes a RowResize event.

All rows of the DataGrid control are always the same height, which is determined by the RowHeight property.

*Note* Even if the AllowRowSizing property is False, the height of the rows can still be changed programmatically with the RowHeight property.