ComponentOne True DBGrid for .NET (2.0) Search HelpCentral 

C1TrueDBGrid.AllowSort Property

Gets or sets a value indicating the ability of the grid to automatically sort data when a column header is clicked.

[Visual Basic]

Public Property AllowSort As Boolean

[C#]

public bool AllowSort {get;set;}

[Delphi]

public property AllowSort: Boolean read get_AllowSort write set_AllowSort;

Remarks

If True, and if the DataView property is set to GroupBy, the grid will automatically filter column data upon grouping action.

If False, the grid will fire the Sort event.

If the DataView property is set to GroupBy and the user attempts to drag a column header into the grouping area, the grid will automatically sort the column data.

If False, the Sort event allows the application to sort the data.

Example

For an example using the AllowSort property, see Disabling Column Sorting.

See Also

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


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