示例#1
0
        /// <summary>
        /// 添加选择(CheckBox)栏
        /// </summary>
        /// <param name="grid"></param>
        public static Columns.CheckColumn AddCheckColumn(this IGrid grid, string columnName)
        {
            Columns.CheckColumn column = new Columns.CheckColumn(grid, columnName);
            grid.Columns.Insert(0, column);

            column.Width    = 35;
            column.ReadOnly = false;
            grid.DataRowTemplate.Cells[columnName].ReadOnly = false;
            column.CheckColumnHelper.Initialize();
            return(column);
        }
示例#2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="template"></param>
 protected CheckColumn(CheckColumn template)
     : base(template)
 {
     //m_grid = template.GridControl;
 }
        /// <summary>
        /// 添加选择(CheckBox)栏
        /// </summary>
        /// <param name="grid"></param>
        public static Columns.CheckColumn AddCheckColumn(this IGrid grid, string columnName)
        {
            Columns.CheckColumn column = new Columns.CheckColumn(grid, columnName);
            grid.Columns.Insert(0, column);

            column.Width = 35;
            column.ReadOnly = false;
            grid.DataRowTemplate.Cells[columnName].ReadOnly = false;
            column.CheckColumnHelper.Initialize();
            return column;
        }
 /// <summary>
 /// 
 /// </summary>
 /// <param name="template"></param>
 protected CheckColumn(CheckColumn template)
     : base(template)
 {
     //m_grid = template.GridControl;
 }