Skip to content

AllowDrag Property

Description

Allows or disallows dragging of the column.

Property Type

Read-write property

Syntax (Visual Basic)

Public Property AllowDrag() As Boolean

Remarks

This property allows you to specify which columns can and can't be dragged or moved. This is set to TRUE by default.

Example

Disabling column dragging (Visual Basic). This sample illustrates how to enable or disable column dragging.

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

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

' You will not be able to drag this column  
Set Column = wndGridControl.Columns.Add(COLUMN_NAME, "Name", 300, True)  
Column.AllowDrag = False  

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

See Also


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