private void GridControl_CustomGroupDisplayText(object sender, DevExpress.Xpf.Grid.CustomGroupDisplayTextEventArgs e) { if (e.Column.FieldName == "RegistrationDate") { DateTime val = (DateTime)e.Value; e.DisplayText = val.ToString("dd-MMM-yyyy"); } }
private void GridControl_CustomGroupDisplayText(object sender, DevExpress.Xpf.Grid.CustomGroupDisplayTextEventArgs e) { if (e.Column.FieldName == "RouteIdentifier.FinishDate") { if (e.Value == null) { e.DisplayText = "Pendiente"; } } }
private void grid_CustomGroupDisplayText(object sender, DevExpress.Xpf.Grid.CustomGroupDisplayTextEventArgs e) { if (e.Column.FieldName != "UnitPrice") { return; } int groupLevel = grid.GetRowLevelByRowHandle(e.RowHandle); if (groupLevel != e.Column.GroupIndex) { return; } string interval = IntervalByValue(e.Value); e.DisplayText = interval; }