C# Class Nettiers.AdventureWorks.Web.UI.BoundRadioButtonField

Represents a Boolean field in a data-bound control that is displayed as a single radio button in the read mode, and two options radio button list in edit mode.
Inheritance: System.Web.UI.WebControls.CheckBoxField
显示文件 Open project: netTiers/netTiers

Public Methods

Method Description
BoundRadioButtonField ( ) : System

ctor

ExtractValuesFromCell ( IOrderedDictionary dictionary, System.Web.UI.WebControls.DataControlFieldCell cell, DataControlRowState rowState, bool includeReadOnly ) : void

This method is called by the ExtractRowValues methods of GridView and DetailsView. Retrieve the current value of the cell from the Checked state of the Radio button.

radioList_DataBound ( object sender, EventArgs e ) : void

Occurs after the server control binds to a data source.

Protected Methods

Method Description
GetDesignTimeValue ( ) : object

Gets a default value for a basic design-time experience. Since it would look odd, even at design time, to have more than one radio button selected, make sure that none are selected.

InitializeDataCell ( System.Web.UI.WebControls.DataControlFieldCell cell, DataControlRowState rowState ) : void

This method adds a RadioButton or RadioButtonList controls and any other content to the cell's Controls collection.

Method Details

BoundRadioButtonField() public method

ctor
public BoundRadioButtonField ( ) : System
return System

ExtractValuesFromCell() public method

This method is called by the ExtractRowValues methods of GridView and DetailsView. Retrieve the current value of the cell from the Checked state of the Radio button.
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

GetDesignTimeValue() protected method

Gets a default value for a basic design-time experience. Since it would look odd, even at design time, to have more than one radio button selected, make sure that none are selected.
protected GetDesignTimeValue ( ) : object
return object

InitializeDataCell() protected method

This method adds a RadioButton or RadioButtonList controls and any other content to the cell's Controls collection.
protected InitializeDataCell ( System.Web.UI.WebControls.DataControlFieldCell cell, DataControlRowState rowState ) : void
cell System.Web.UI.WebControls.DataControlFieldCell
rowState DataControlRowState
return void

radioList_DataBound() public method

Occurs after the server control binds to a data source.
public radioList_DataBound ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void