System.Web.UI.WebControls.BaseDataBoundControl Members

The members of System.Web.UI.WebControls.BaseDataBoundControl are listed below.

See Also: Inherited members from System.Web.UI.WebControls.WebControl

Protected Constructors

Initializes a new instance of the System.Web.UI.WebControls.BaseDataBoundControl class.

Public Properties

DataSourceobject.

Gets or sets the object from which the data-bound control retrieves its list of data items.

DataSourceIDstring.

Gets or sets the ID of the control from which the data-bound control retrieves its list of data items.

Protected Properties

[read-only]
Initializedbool.

Gets a value indicating whether the data-bound control has been initialized.

[read-only]
IsBoundUsingDataSourceIDbool.

Gets a value indicating whether the BaseDataBoundControl.DataSourceID property is set.

RequiresDataBindingbool.

Gets or sets a value indicating whether the BaseDataBoundControl.DataBind method should be called.

Public Methods

override
DataBind()

Binds a data source to the invoked server control and all its child controls.

Protected Methods

ConfirmInitState()

Sets the initialized state of the data-bound control.

EnsureDataBound()

Calls the BaseDataBoundControl.DataBind method if the BaseDataBoundControl.DataSourceID property is set and the data-bound control is marked to require binding.

OnDataBound(EventArgs)

Raises the BaseDataBoundControl.DataBound event.

OnDataPropertyChanged()

Rebinds the data-bound control to its data after one of the base data source identification properties changes.

override
OnInit(EventArgs)

Handles the System.Web.UI.Control.Init event.

OnPagePreLoad(object, EventArgs)

Sets the initialized state of the data-bound control before the control is loaded.

override
OnPreRender(EventArgs)

Handles the System.Web.UI.Control.PreRender event.

abstract
PerformSelect()

When overridden in a derived class, controls how data is retrieved and bound to the control.

abstract
ValidateDataSource(object)

When overridden in a derived class, verifies that the object a data-bound control binds to is one it can work with.

Public Events

DataBound

Occurs after the server control binds to a data source.