You can define columns explicitly to display the needed items in DataGrid. You can also enhance the appearance of columns by setting the header text, text alignment, cell value format, and width.
Columns can be auto generated from the data source. When column collection is not specified, DataGrid will create columns’ definition for the users by creating column object from the data source.
Users can interactively auto size column width to show its full content by double clicking on column borders. It also supports triggering auto sizing to the required columns programmatically.
Users can decorate each cell element of the DataGrid with their own attributes to customize styles, add additional class names, etc.
Wraps the DataGrid cell text to the next line when it is too large to fit inside a cell. Users can wrap either the header or content cell`s text by setting the available wrap mode options.
The column chooser provides a list of column names paired with check boxes that allow the visibility to be toggled on the fly. This helps users control the column visibility through an interactive UI.
In the DataGrid, columns can be reordered either through user interaction or programmatically. Simply dragging and dropping a column header in the desired column position will reorder the columns.
Column resize allows changing column width on the fly by simply dragging the right corner of the column header. A scroll bar appears when the DataGrid content width exceeds the element width.
Various column-based actions can be performed with the help of column menu. Menu items can also be customized to list only preferred actions.
Columns and rows can be frozen to allow scrolling and comparing cell values.
DataGrid cells can be spanned based on the preferred criteria.
It is possible to show values from external or lookup data sources in a column based on foreign key/value name. Sorting, filtering, editing, grouping, and other operations can be performed in the foreign data column.
The value accessors specify how the cell value is to be retrieved from the data. The preferred value accessors can be used when the row data is not just a simple object.
DataGrid cell styles can be customized either by using CSS or programmatically.