DataGridViewColumnHeaderCell::SortGlyphDirection Property
.NET Framework (current version)
Gets or sets a value indicating which sort glyph is displayed.
Assembly: System.Windows.Forms (in System.Windows.Forms.dll)
| Exception | Condition |
|---|---|
| InvalidEnumArgumentException | The specified value when setting this property is not a valid SortOrder value. |
| InvalidOperationException | When setting this property, the value of either the OwningColumn property or the DataGridView property of the cell is null. -or- When changing the value of this property, the specified value is not None and the value of the SortMode property of the owning column is NotSortable. |
This property is set automatically for columns with the SortMode property set to DataGridViewColumnSortMode::Automatic. You must set this property yourself when sorting by columns with the SortMode property set to DataGridViewColumnSortMode::Programmatic.
.NET Framework
Available since 2.0
Available since 2.0
Show: