Partilhar via


Sorting Data in the Windows Forms DataGridView Control

By default, users can sort the data in a DataGridView control by clicking the header of a text box column. You can modify the SortMode property of specific columns to allow users to sort by other column types when it makes sense to do so. You can also sort the data programmatically by any column, or by multiple columns.

In This Section

Reference

  • DataGridView
    Provides reference documentation for the DataGridView control.

See Also

Concepts

Column Types in the Windows Forms DataGridView Control

Other Resources

DataGridView Control (Windows Forms)