The requested page is not available for the requested platform. You are viewing the content for Default platform.

Dimension Column

  • 2 min to read

The dimension column displays values from the bound data item "as is".

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.

In code, dimension columns are represented by the GridDimensionColumn class. Use the following properties to change column options.

GridDimensionColumn.Dimension

Gets or sets a dimension that provides cell values.

GridDimensionColumn.DisplayMode

Gets or sets how to display cell values.

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);
See Also