System.Windows.Forms.DataGridTableStyle.AllowSorting Property

Indicates whether sorting is allowed on the grid table when this System.Windows.Forms.DataGridTableStyle is used.

Syntax

[System.ComponentModel.DefaultValue(true)]
public bool AllowSorting { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

When the DataGridTableStyle.AllowSorting property is set to true, a triangle appears in each column header indicating the direction of the sort. The user can click on any column header to sort the grid by that column. Clicking the column a second time changes the direction of the sort.

This property overrides the DataGrid.AllowSorting property.

Requirements

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0