System.Web.UI.WebControls.CheckBoxField.ExtractValuesFromCell C# (CSharp) Method

ExtractValuesFromCell() public method

public ExtractValuesFromCell ( IOrderedDictionary dictionary, System.Web.UI.WebControls.DataControlFieldCell cell, DataControlRowState rowState, bool includeReadOnly ) : void
dictionary IOrderedDictionary
cell System.Web.UI.WebControls.DataControlFieldCell
rowState DataControlRowState
includeReadOnly bool
return void
		public override void ExtractValuesFromCell (IOrderedDictionary dictionary,
			DataControlFieldCell cell, DataControlRowState rowState, bool includeReadOnly)
		{
			bool editable = IsEditable (rowState);
			if (editable || includeReadOnly) {
				CheckBox box = (CheckBox) cell.Controls [0];
				dictionary [DataField] = box.Checked;
			}
		}