AllowColumnResize Property
Description
Specifies whether GridColumns can be resized.
Property Type
Read-write property.
Syntax (Visual Basic)
Public Property AllowColumnResize() As Boolean
Remarks
If True and the Resizable property is True, columns can be resized by dragging the border of the column header to the desired size. When the mouse pointer is in a position that will allow the column to be resized, the mouse pointer changes to a splitter. See picture below.

If False, columns can only be resized via code. The mouse pointer will never change to the splitter, so the columns cannot be resized with the mouse.
Example
AllowColumnResize Sample (Visual Basic)
This sample illustrates how to disable column resizing by the user. This will not allow them to resize the column by dragging the borders of the column with the mouse.
' This will not allow columns to be resized with the mouse
wndGridControl.AllowColumnResize = False
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.