Пример #1
0
 public DataGridColumDefinition(string columnName, string displayMember, string headerName, GridColumnDataType columnDataType = GridColumnDataType.Text, string alignment = "right", string width = "auto", string accessPolicyCode = "")
 {
     this.ColumnName = columnName;
     this.DisplayMember = displayMember;
     this.HeaderName = headerName;
     this.ColumnDataType = columnDataType;
     this.Alignment = alignment;
     this.Width = width;
     this.AccessPolicyCode = accessPolicyCode;
 }
Пример #2
0
 public static string GetName(GridColumnDataType type)
 {
     switch (type)
     {
         case GridColumnDataType.Default:
             return string.Empty;
         case GridColumnDataType.Boolean:
             return "booleancolumn";
         case GridColumnDataType.Date:
             return "datecolumn";
         case GridColumnDataType.Number:
             return "numbercolumn";
         default:
             return string.Empty;
     }
 }
Пример #3
0
        public static string GetName(GridColumnDataType type)
        {
            switch (type)
            {
            case GridColumnDataType.Default:
                return(string.Empty);

            case GridColumnDataType.Boolean:
                return("booleancolumn");

            case GridColumnDataType.Date:
                return("datecolumn");

            case GridColumnDataType.Number:
                return("numbercolumn");

            default:
                return(string.Empty);
            }
        }
Пример #4
0
 public DataGridColumnBuilder <T> DataType(GridColumnDataType value)
 {
     base.Options["dataType"] = value;
     return(this);
 }
Пример #5
0
 public DataGridColumDefinition(string columnName, string displayMember, string headerName, GridColumnDataType columnDataType = GridColumnDataType.Text, string alignment = "right", string width = "auto", string accessPolicyCode = "")
 {
     this.ColumnName       = columnName;
     this.DisplayMember    = displayMember;
     this.HeaderName       = headerName;
     this.ColumnDataType   = columnDataType;
     this.Alignment        = alignment;
     this.Width            = width;
     this.AccessPolicyCode = accessPolicyCode;
 }