Back to Devexpress

Dimension Column

dashboard-15167-winforms-dashboard-winforms-designer-create-dashboards-in-the-winforms-designer-dashboard-item-settings-grid-columns-dimension-column.md

latest2.8 KB
Original Source

Dimension Column

  • Dec 22, 2020
  • 2 minutes 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:

csharp
var grid = new GridDashboardItem();
grid.DataSource = dataSource;

var gridDimension = new GridDimensionColumn();
gridDimension.Dimension = new Dimension("Category");

grid.Columns.Add(gridDimension);
vb
Dim grid As New GridDashboardItem()
grid.DataSource = dataSource

Dim gridDimension As New GridDimensionColumn()
gridDimension.Dimension = New Dimension("Category")

grid.Columns.Add(gridDimension)

See Also

Measures and Dimensions

Column Types Overview