Skip to content

Resizable Property

Description

Indicates whether the column is resizable.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property Resizable() As Boolean

Remarks

If TRUE, the user can resize the column.

If FALSE, the user can't resize the column.

Note: When a column is added, the Resizable parameter is used to set the value for both the Resizable and AutoSize properties. If these properties will have different values, then you will have to change the required value after the column has been added. For example, if you specified that Resizable=TRUE when the column was added, but you require that AutoSize=FALSE, then you need to add code to change this.

Example

Resizable Sample (Visual Basic)

This sample illustrates how to allow a column to be resizable.

' Add this to the General code section  
Const COLUMN_NAME = 1  

' This code is placed in the Form_Load event  
Dim Column As GridColumn  

' The Resizable parameter sets the value for both the AutoSize and Resizable properties  
' Here, we want AutoSize off and Resizable on  
Set Column = wndGridControl.Columns.Add(COLUMN_NAME, "Name", 300, False)  

' Enable Resizable  
Column.Resizable = True  

' Or you can access the column this way  
wndGridControl.Columns(COLUMN_NAME).Resizable = True  

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.