コード例 #1
0
 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;
 }
コード例 #2
0
 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;
 }
コード例 #3
0
 public GridColumnAttrib(string colName, string caption)
 {
     ColumnName       = colName;
     ColumnCaption    = caption;
     ColumnType       = null;
     ColumnReadOnly   = false;
     ColumnVisible    = true;
     Attributes       = null;
     ColumnFormatType = ColumnFormatType.DefaultFormat;
 }
コード例 #4
0
 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;
 }
コード例 #5
0
        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;
        }