GridDimensionColumn Class
A dimension column in a GridDashboardItem.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v21.2.Core.dll
Declaration
Remarks
Displays grouped values from the bound data item and allows you to provide discrete categorical information.
A dimension column accepts values of any type:
Type | Example | Description |
---|---|---|
string | Displays string values. | |
numeric | Displays numeric (integer or float) values. | |
date | Displays date-time values. For these values, you can change a group interval. Right-click the data item and select the required group interval. | |
boolean | Displays boolean values as true or false. | |
object | The dimension column can display images if it is bound to a data source containing images. You can choose whether the dimension column shows data as images or text (strings that encode images in the base64 format). To do this, click the data item’s Options button and specify how to show values. |
Use the GridDimensionColumn.Dimension property to specify the dimensions to which the column is bound.
If the bound dimension contains image data, the dimension column can display images. Set the GridDimensionColumn.DisplayMode property to GridDimensionColumnDisplayMode.Image to specify that images should be displayed within this column.
The following code snippet creates the Dimension column:
var grid = new GridDashboardItem();
grid.DataSource = dataSource;
var gridDimension = new GridDimensionColumn();
gridDimension.Dimension = new Dimension("Category");
grid.Columns.Add(gridDimension);
Related GitHub Examples
The following code snippets (auto-collected from DevExpress Examples) contain references to the GridDimensionColumn class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.