We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Advanced Column Options

The Datagrid control provides various advanced column options to provide better user experience.

Auto-fit and Resize columns

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.

Reordering 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.

Stacked Headers

The Datagrid control has built-in support for displaying stacked headers which are unbound header rows that can span across multiple rows and columns.

Unbound 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.

Cell Template

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.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.