Gets or sets a value indicating the ability to move columns in the grid.
[Visual Basic]
Public Property AllowColMove As Boolean
[C#]
public bool AllowColMove {get;set;}
[Delphi]
public property AllowColMove: Boolean read get_AllowColMove write set_AllowColMove;
Remarks
If True (the default), the user can move columns.
If False, the user cannot move columns.
Use the AllowColMove property to control whether the user can move columns by dragging the column header to the desired location. Any change in column order causes a ColMove event.
If AllowColMove is set to True, and the DataView property is set to GroupBy, a grouping area is added to the grid. Columns can be added or dragged to this area at run time.
See Column Grouping for more information.
Example
The following uses the AllowColMove property to restrict the user from moving columns:
Me.C1TrueDBGrid1.AllowColMove = False
· C#
this.c1TrueDBGrid1.AllowColMove = false;
· Delphi
Self.C1TrueDBGrid1.AllowColMove := False;
For an example demonstrating the AllowColMove property, see the Moving Columns and Moving Columns at Run Time topics.
See Also
C1TrueDBGrid Class | C1TrueDBGrid Members | C1.Win.C1TrueDBGrid Namespace
Send comments about this topic to ComponentOne. Copyright © ComponentOne LLC. All rights reserved. |