Skip to main content

DataItem Class

Serves as the base class for data items - measures and dimensions.

Namespace: DevExpress.DashboardCommon

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

Declaration

public abstract class DataItem :
    IDataItemRepositoryProvider,
    ISupportInitialize,
    IEditNameProvider,
    IFormatOwnerContext

Remarks

The DataItem class identifies a data binding. A data item is mapped to a particular data source member when creating the instance of the DataItem descendant and can be assigned to a dashboard item. As a result, this binds the dashboard item to the data member.

This class also provides format settings for date-time and numeric values accessed via the DataItem.DateTimeFormat and DataItem.NumericFormat properties.

The DataItem class derives the Measure and Dimension classes for binding to quantitative and non-quantitative data respectively. These classes allow you to enable data shaping and configure summary calculation, depending on the binding type.

DataItem serves as the base class for the following descendants:

The following code snippet (auto-collected from DevExpress Examples) contains a reference to the DataItem 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.

Inheritance

See Also