DataGrid
Controls Suite 4.5 |
![](/Skins/Menu_Side/LineTop.gif) | Overview |
![](/Skins/Menu_Side/LineMiddle.gif) | Features |
![](/Skins/Menu_Side/Expand.gif) | Reference Book |
![](/Skins/Menu_Side/Collapse.gif) | Live Demos |
| ![](/Skins/Menu_Side/Expand.gif) | Populating with Data |
| ![](/Skins/Menu_Side/Collapse.gif) | Columns |
| ![](/Skins/Menu_Side/Expand.gif) | Rows |
| ![](/Skins/Menu_Side/Expand.gif) | Appearance & Layout |
| ![](/Skins/Menu_Side/Expand.gif) | Behavior |
| ![](/Skins/Menu_Side/Expand.gif) | Bottom Bar |
| ![](/Skins/Menu_Side/Expand.gif) | Application scenarios |
| | ![](/Skins/Menu_Side/LineMiddle.gif) | Master/Detail Grids |
| | ![](/Skins/Menu_Side/LineMiddle.gif) | CheckBoxes |
| | ![](/Skins/Menu_Side/LineMiddle.gif) | DropDowns |
| | ![](/Skins/Menu_Side/LineMiddle.gif) | Images |
| | ![](/Skins/Menu_Side/LineBottom.gif) | 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.
|