ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1DataColumn.SortDirection Property

Gets or sets the state of the sorting glyph in the column caption.

[Visual Basic]

Public Property SortDirection As SortDirEnum

[C#]

public SortDirEnum SortDirection {get;set;}

[Delphi]

public property SortDirection: SortDirEnum read get_SortDirection write set_SortDirection;

Example

The following code uses the SortDirection property to set the sorting glyph to ascending:

·      Visual Basic

       Me.C1TrueDBGrid1.Columns(0).SortDirection = C1.Win.C1TrueDbGrid.SortDirEnum.Ascending

·      C#

       this.c1TrueDBGrid1.Columns[0].SortDirection = C1.Win.C1TrueDbGrid.SortDirEnum.Ascending;

·      Delphi

       Self.C1TrueDBGrid1.Columns[0].SortDirection := C1.Win.C1TrueDbGrid.SortDirEnum.Ascending;

See Also

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


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