This topic compares, both conceptually and through side-by-side feature comparison, the xamGrid™ and xamDataGrid™. Its purpose is to help you decide which grid to use in your application.
This topic contains the following sections:
The xamDataGrid control is part of the Infragistics Data Presenter Family set of controls. It also includes other controls such as the xamDataPresenter, xamDataCards, and xamDataCarousel. These controls take advantage of a shared foundation and API. Because the Data Presenter controls support multiple views which offer many arrangements of the records, the xamDataGrid control refers to data columns as “fields” and to data rows – as “records”.
The xamGrid refers to data columns as “columns” and to data rows – as “rows”.
The xamDataGrid has the ability to handle hundreds of thousands of records at a time and, to support that, it comes with features such as virtualization and recycling. For more information, see the Optimizing xamDataPresenter’s Performance topic.
The xamGrid control was designed for high performance, allowing you to bind to many hundred thousand rows. For more information, see the Performance Whitepaper.
As part of the Data Presenter family, the xamDataGrid control supports several built in views/ arrangements of the records including:
Vertical GridView
Horizontal GridView
Tree GridView
The xamGrid arranges the rows in a standard vertical tabular arrangement.
The xamDataGrid control creates Field objects for each property/data column. There is a single Field class and, by default, an appropriate editor will be used for each associated cell based on the Field’s data type. However, this is fully customizable.
The following lists the different types of fields available in xamDataGrid:
Unbound Fields – Unbound fields allow you to add fields to the xamDataGrid control that are not bound to any specific data. For more information, see the Add Unbound Fields to a DataPresenter Control topic.
Template Column Layout – While the xamDataGrid control does not support a specific template field layout, you do have total flexibility when it comes to arranging cells within a record. Cells can be assigned a Row, Col, RowSpan and ColumnSpan to determine their layout within a record.
Hierarchical Data View - The xamDataGrid automatically creates field layouts based on your data model. You can also manually define field layouts to specify which fields to display and to set properties related to those fields. For more information, see the Displaying Hierarchical Data topic.
The xamGrid allows you to create your own column types. For details, see the Columns topic.
The following lists the different types of columns that are available in xamGrid:
Unbound Column – This column type allow you to add columns to the xamGrid control that are not bound to any specific data, but instead utilize a ValueConverter to display calculated values.
For more information, see the Unbound Column topic
Filler Column - This column fills any remaining space in xamGrid control. For more information, see the Filler Column topic.
Column Type Mappings - Columns are automatically generated based on the data type, you can override this by changing its column type mapping. For more information, see the Column Type Mappings topic.
Template Column Layout - A template column in xamGrid allows you to display custom content.
For more information see the Template Column Layout topic.
Group Column - GroupColumns allows you to group multiple columns together under a single common header. For more information, see the Group Column topic.
Hierarchical Data View - The xamGrid uses a concept called Column Layouts to determine what columns are shown, and how those columns are positioned in the hierarchical view. You can define one or more ColumnLayout objects within the grid, allowing you to display hierarchical data structures. Each column layout is generally independent from any other defined in xamGrid. For more information, see the Define Column Layout topic.
The following table lists all grid features and indicates whether they are supported by each grid. The features that are available in both grids but are supported somewhat differently, are marked with an asterisk (*). You can read a more detailed description on the feature support below.
The following table lists the features supported only by the xamDataGrid control.
The following table lists the features supported only by the xamGrid control.
The following table lists the features that are supported by both xamGrid and xamDataGrid. It also provides a description on how the feature is supported by each control for the purpose of outlining the differences between them. The features that are available in both grids but are supported somewhat differently, are marked with an asterisk (*).
Following are some other topics you may find useful.