Fired before the user starts resizing a row or column, allows cancel.
Public Event BeforeUserResize As CellCancelEventHandler
Grid Object
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. |
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.