Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Sort Method
Collapse the table of content
Expand the table of content

DataGridView.Sort Method

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
Public method Sort(IComparer) Sorts the contents of the DataGridView control using an implementation of the IComparer interface.
Public method Sort(DataGridViewColumn, ListSortDirection) Sorts the contents of the DataGridView control in ascending or descending order based on the contents of the specified column.
Top
Show:
© 2015 Microsoft