Example #1
0
        public GridEXColumn AddColumn(string colName, ColumnType colType, int width, ColumnBoundMode boundMode, string caption, FilterEditType editType, TextAlignment align)
        {
            if (this.RootTable == null)
            {
                this.RootTable = new GridEXTable();
            }
            GridEXColumn col = this.RootTable.Columns.Add(colName, colType);

            col.Width          = width;
            col.BoundMode      = boundMode;
            col.DataMember     = colName;
            col.Caption        = caption;
            col.FilterEditType = editType;
            col.TextAlignment  = align;
            return(col);
        }
Example #2
0
 public GridEXColumn AddColumn(string colName, ColumnType colType, int width, ColumnBoundMode boundMode, string caption, FilterEditType editType)
 {
     return(AddColumn(colName, colType, width, boundMode, caption, editType, TextAlignment.Near));
 }