void CustomDrawSeriesPoint(object sender, CustomDrawSeriesPointEventArgs e) { DashboardFlatDataSourceRow row = e.SeriesPoint.Tag as DashboardFlatDataSourceRow; string formattedValue = flatData.GetDisplayText(dashboardItem.Metadata.Value.UniqueId, row); e.LabelText = e.SeriesPoint.Argument + " - " + formattedValue; e.LegendText = e.SeriesPoint.Argument; }
void View_CustomColumnDisplayText(object sender, DevExpress.XtraGrid.Views.Base.CustomColumnDisplayTextEventArgs e) { DashboardFlatDataSource data = (DashboardFlatDataSource)grid.DataSource; e.DisplayText = data.GetDisplayText(e.Column.FieldName, e.ListSourceRowIndex); }