public GridColumnAttrib(string colName, string caption, bool isReadOnly, bool visible) { ColumnName = colName; ColumnCaption = caption; ColumnType = null; ColumnReadOnly = isReadOnly; ColumnVisible = visible; Attributes = null; ColumnFormatType = ColumnFormatType.DefaultFormat; }
public GridColumnAttrib(string colName, string caption, DbAttributes attribs, ColumnFormatType format) { ColumnName = colName; ColumnCaption = caption; ColumnType = typeof(string); ColumnReadOnly = false; ColumnVisible = true; this.Attributes = attribs; ColumnFormatType = format; }
public GridColumnAttrib(string colName, string caption) { ColumnName = colName; ColumnCaption = caption; ColumnType = null; ColumnReadOnly = false; ColumnVisible = true; Attributes = null; ColumnFormatType = ColumnFormatType.DefaultFormat; }
public GridColumnAttrib(string colName, string caption, ColumnFormatType displayMode) { ColumnName = colName; ColumnCaption = caption; if (displayMode == ColumnFormatType.Image) { ColumnType = typeof(Image); } else { ColumnType = typeof(string); } ColumnReadOnly = false; ColumnVisible = true; Attributes = null; ColumnFormatType = displayMode; }
public GridColumnAttrib(string colName, string caption, ColumnFormatType format) { ColumnName = colName; ColumnCaption = caption; if (format == ColumnFormatType.Image) { ColumnType = typeof(Image); } else if (format == ColumnFormatType.FileSize) { ColumnType = typeof(double); } else { ColumnType = typeof(string); } ColumnReadOnly = false; ColumnVisible = true; Attributes = null; ColumnFormatType = format; }