BeforeUserResize Event

Fired before the user starts resizing a row or column, allows cancel.

Syntax

Public Event BeforeUserResize As CellCancelEventHandler

Applies To

Grid Object

Parameters

The following parameters are available:

Parameter Description
Row The index of the row that was resized.
Col The index of the column that was resized.
Cancel Set this value to True to prevent the user from resizing.

Remarks

The user may resize rows and columns using the mouse, depending on the setting of the AllowUserResizing property.

If the user is about to start resizing a row, the Row parameter contains the index of the row to be resized and the Col parameter contains -1.

If the user is about to start resizing a column, the Col parameter contains the index of the column to be resized and the Row parameter contains -1.

You may prevent the user from resizing specific rows and columns by setting the Cancel parameter to True.

See Also

AfterUserResize Event