ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

Split.AllowColMove Property

Gets or sets a value indicating the ability to move columns.

[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 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 C1TrueDBGrid.ColMove event.

If AllowColMove is set to True, and the C1TrueDBGrid.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 code restricts moving columns in the second split:

·      Visual Basic

       Me.C1TrueDBGrid1.Splits(1).AllowColMove = False

·      C#

       this.c1TrueDBGrid1.Splits[1].AllowColMove = false;

·      Delphi

       Self.C1TrueDBGrid1.Splits[1].AllowColMove := False;

See Also

Split Class | Split Members | C1.Win.C1TrueDBGrid Namespace


Send comments about this topic to ComponentOne.
Copyright © ComponentOne LLC. All rights reserved.