To cancel sorting, use the DataGridView.ClearSorting method. To prevent end users from sorting data, use the DataGridView.AllowSort and GridColumn.AllowSort properties. To specify whether the grid should sort data by cell values or display text, use the GridColumn.SortMode property. From masked data input and built-in data validation, to HTML formatting, the DevExpress Data Editors Library offers unmatched data editing options whether used for standalone data editing or in cells of container controls such as Grid, TreeList, and Ribbon. To specify the sorting sequence applied to columns, use the GridColumn.SortIndex of these columns.Īnother way to sort data in the grid by column values is to use the column’s GridColumn.SortOrder property. Over 80 high-impact WinForms Editors and multi-purpose controls. When you call the SortBy method, the grid does not clear previously applied sorting and uses the new sort order as an additional condition to sort data. The grid supports multi-column sorting, if the DataGridView.SortMode property is set to Multiple. In this case, when you call the SortBy method, the grid discards the previously applied sorting by another column. The grid allows data sorting by a single column only, if the DataGridView.SortMode property is set to Single. Use the SortBy method to sort data in the grid. Namespace: ĭ Declaration public void SortBy(Ī GridColumn object or descendant that specifies the grid’’s column. Sorts data by values of the specified column in ascending order.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |