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; }
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; } }
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); } }
public DataGridColumnBuilder <T> DataType(GridColumnDataType value) { base.Options["dataType"] = value; return(this); }