/// <summary> /// Initializes the header. /// </summary> /// <param name="cell"></param> protected virtual void InitializeHeader(DataControlFieldCell cell) { if (this.AllowSelectAll && this.SelectionMode == ListSelectionMode.Multiple) { string text = cell.Text; this.selectAll = new SelectAllCheckBox(); cell.Controls.Add(this.selectAll); this.selectAll.AutoPostBack = this.AutoPostBack; LiteralControl headerLabel = new LiteralControl(text); cell.Controls.Add(headerLabel); } }
/// <summary> /// Initializes the header. /// </summary> /// <param name="cell"></param> protected virtual void InitializeHeader(DataControlFieldCell cell) { if (this.AllowSelectAll && this.SelectionMode == ListSelectionMode.Multiple) { string text = cell.Text; this.selectAll = new SelectAllCheckBox(); cell.Controls.Add(this.selectAll); this.selectAll.AutoPostBack = this.AutoPostBack; LiteralControl headerLabel = new LiteralControl(text); cell.Controls.Add(headerLabel); } }