GridDimensionColumn Class
A dimension column in a GridDashboardItem.
Namespace: DevExpress.DashboardCommon
Assembly: DevExpress.Dashboard.v24.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);