The Datagrid control provides various advanced column options to provide better user experience.
The Datagrid control has built-in support for automatically resizing column widths based on the specified sizing criteria. Some of the auto-resizing options include resizing based on the cell content, header content, star sizing, and resizing the last column to fill any remaining space. Users can resize columns by clicking and dragging at the edge of column header similar to Excel. In touch mode, pressing and holding the header cell will enable a touch UI for resizing the columns.
It is also possible to re-order columns using touch and mouse interactivity. Drag indicators help users position the column in the correct location.
The Datagrid control has built-in support for displaying stacked headers which are unbound header rows that can span across multiple rows and columns.
In addition to displaying data from an underlying data source, the Datagrid can also display unbound columns. Unbound columns can be used to display expressions which involve manipulating data from multiple columns. Unbound columns can also be used to display columns containing templates like buttons and check boxes.
In Datagrid, provided CellTemplate support to all the columns that defines the presentation of cells and display can be customized while loading. In Edit Mode, editor corresponding to that column will get loaded.