Ejemplo n.º 1
0
        private void searchResultGrid_CustomGroupDisplayText(object sender, DevExpress.Xpf.Grid.CustomColumnDisplayTextEventArgs e)
        {
            switch (e.Column.FieldName)
            {
            case "ResourceId":
                e.DisplayText = OwnerScheduler.Storage.ResourceStorage.GetResourceById(e.Value).Caption;
                break;

            case "LabelId":
                e.DisplayText = OwnerScheduler.Storage.AppointmentStorage.Labels[(int)e.Value].DisplayName;
                break;

            case "StatusId":
                e.DisplayText = OwnerScheduler.Storage.AppointmentStorage.Statuses[(int)e.Value].DisplayName;
                break;
            }
        }
 private void OnCustomColumnDisplayText(object sender, DevExpress.Xpf.Grid.CustomColumnDisplayTextEventArgs e)
 {
     CustomFormat.FormatStorageColumns(e);
 }