Class CheckBoxColumn
The CheckBoxColumn control provides a Check Box column for a Data Grid.
Inheritance
Namespace: DotNetNuke.UI.WebControls
Assembly: DotNetNuke.dll
Syntax
public class CheckBoxColumn : TemplateColumn
Constructors
| Improve this Doc View SourceCheckBoxColumn()
Initializes a new instance of the CheckBoxColumn class. Constructs the CheckBoxColumn.
Declaration
public CheckBoxColumn()
CheckBoxColumn(Boolean)
Initializes a new instance of the CheckBoxColumn class. Constructs the CheckBoxColumn, with an optional AutoPostBack (where each change of state of a check box causes a Post Back).
Declaration
public CheckBoxColumn(bool autoPostBack)
Parameters
Type | Name | Description |
---|---|---|
System.Boolean | autoPostBack | Optional set the checkboxes to postback. |
Properties
| Improve this Doc View SourceAutoPostBack
Gets or sets a value indicating whether gets and sets whether the column fires a postback when any check box is changed.
Declaration
public bool AutoPostBack { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A Boolean. |
Checked
Gets or sets a value indicating whether the checkbox is checked (unless DataBound).
Declaration
public bool Checked { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A Boolean. |
DataField
Gets or sets the Data Field that the column should bind to changed.
Declaration
public string DataField { get; set; }
Property Value
Type | Description |
---|---|
System.String | A Boolean. |
Enabled
Gets or sets a value indicating whether an flag that indicates whether the checkboxes are enabled (this is overridden if the EnabledField is set) changed.
Declaration
public bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A Boolean. |
EnabledField
Gets or sets the Data Field that determines whether the checkbox is Enabled changed.
Declaration
public string EnabledField { get; set; }
Property Value
Type | Description |
---|---|
System.String | A String. |
HeaderCheckBox
Gets or sets a value indicating whether a flag that indicates whether there is a checkbox in the Header that sets all the checkboxes.
Declaration
public bool HeaderCheckBox { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean | A Boolean. |
Methods
| Improve this Doc View SourceInitialize()
Initialises the Column.
Declaration
public override void Initialize()
Events
| Improve this Doc View SourceCheckedChanged
The CheckBoxColumn control provides a Check Box column for a Data Grid.
Declaration
public event DNNDataGridCheckedColumnEventHandler CheckedChanged
Event Type
Type | Description |
---|---|
DNNDataGridCheckedColumnEventHandler |