Back to Devexpress

GridDimensionColumn Class

dashboard-devexpress-dot-dashboardcommon-90881f7a.md

latest4.4 KB
Original Source

GridDimensionColumn Class

A dimension column in a GridDashboardItem.

Namespace : DevExpress.DashboardCommon

Assembly : DevExpress.Dashboard.v25.2.Core.dll

NuGet Package : DevExpress.Dashboard.Core

Declaration

csharp
public class GridDimensionColumn :
    GridColumnBase,
    IDimensionable
vb
Public Class GridDimensionColumn
    Inherits GridColumnBase
    Implements IDimensionable

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:

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)

Implements

ICustomPropertyProvider

Inheritance

Object DataItemContainer NamedDataItemContainer GridColumnBase GridDimensionColumn

See Also

GridDimensionColumn Members

Dimension Column

DevExpress.DashboardCommon Namespace