DataGridView.Sort Method
.NET Framework 4.5
Sorts the contents of the DataGridView control.
This member is overloaded. For complete information about this member, including syntax, usage, and examples, click a name in the overload list.
| Name | Description | |
|---|---|---|
|
Sort(IComparer) | Sorts the contents of the DataGridView control using an implementation of the IComparer interface. |
|
Sort(DataGridViewColumn, ListSortDirection) | Sorts the contents of the DataGridView control in ascending or descending order based on the contents of the specified column. |