AllowUserResizing Property

Returns or sets whether the user is allowed to resize rows and columns with the mouse.

Syntax

Public Property AllowUserResizing As ResizeMode

Applies To

Grid Object

Data Type

Enumerated

The following settings are available:

Constant Value Description
None 0 The user may not resize rows or columns.
Columns 1 The user may resize column widths.
Rows 2 The user may resize row heights.
Both 3(Default) The user may resize column widths and row heights.
BothUniform 4 The user may resize column widths and row heights. When a row height is resized, the new height is applied to all rows.

Remarks

A group of columns is selected (from first to last row) and the user resizes one of them, all selected columns are resized. The same applies to rows.

The BeforeUserResize event is fired before resizing starts, and may be used to prevent resizing of specific rows and columns. The AfterUserResize event is fired after resizing, and may be used to validate the user's action.