C# Class Rock.Web.UI.Controls.ColorField

Inheritance: RockBoundField
Show file Open project: NewSpring/Rock

Public Methods

Method Description
ColorField ( ) : System

Initializes a new instance of the ColorField class.

Protected Methods

Method Description
FormatDataValue ( object dataValue, bool encode ) : string

Formats the specified field value for a cell in the T:System.Web.UI.WebControls.BoundField object.

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

Initializes the specified T:System.Web.UI.WebControls.TableCell object to the specified row state.

cell_DataBinding ( object sender, EventArgs e ) : void

Handles the DataBinding event of the cell control.

Method Details

ColorField() public method

Initializes a new instance of the ColorField class.
public ColorField ( ) : System
return System

FormatDataValue() protected method

Formats the specified field value for a cell in the T:System.Web.UI.WebControls.BoundField object.
protected FormatDataValue ( object dataValue, bool encode ) : string
dataValue object The field value to format.
encode bool true to encode the value; otherwise, false.
return string

InitializeDataCell() protected method

Initializes the specified T:System.Web.UI.WebControls.TableCell object to the specified row state.
protected InitializeDataCell ( System.Web.UI.WebControls.DataControlFieldCell cell, DataControlRowState rowState ) : void
cell System.Web.UI.WebControls.DataControlFieldCell The to initialize.
rowState DataControlRowState One of the values.
return void

cell_DataBinding() protected method

Handles the DataBinding event of the cell control.
protected cell_DataBinding ( object sender, EventArgs e ) : void
sender object The source of the event.
e System.EventArgs The instance containing the event data.
return void