DataGrid
Controls Suite 4.5 |
 | Overview |
 | Features |
 | Reference Book |
 | Live Demos |
|  | Populating with Data |
|  | Columns |
|  | Rows |
|  | Appearance & Layout |
|  | Behavior |
|  | Bottom Bar |
|  | Application scenarios |
| |  | Master/Detail Grids |
| |  | CheckBoxes |
| |  | DropDowns |
| |  | Images |
| |  | Update Panel |
|
The DataGrid allows sorting quite simply. By clicking on a column header the sorting is made in ascending order; by clicking the second time, data sorting acquires descending order, etc.
- To disable the sorting functionality for a specific column, set the Sortable property
value to false.
- The property Sorted specifies a value that indicates whether the column data is sorted.
- The method GetSortedColumn() returns the sorted column.
This example demonstrates DataGrid which cannot be sorted by clicking on the 'CompanyName' column's header.
|