ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBDropdown.AllowColMove Property

Exposed object model

[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 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 uses the AllowColMove property to restrict the user from moving columns:

·      Visual Basic

       Me.C1TrueDBDropdown1.AllowColMove = False

·      C#

       this.c1TrueDBDropdown1.AllowColMove = false;

·      Delphi

       Self.C1TrueDBDropdown1.AllowColMove := False;

For an example demonstrating the AllowColMove property, see the Moving Columns topic.

See Also

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


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