System.Web.UI.WebControls.BaseDataList Members

The members of System.Web.UI.WebControls.BaseDataList 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.BaseDataList class.

Public Properties

Captionstring.

Gets or sets the text to render in an HTML caption element in the control. This property is provided to make the control more accessible to users of assistive technology devices.

CaptionAlignTableCaptionAlign.

Gets or sets the horizontal or vertical position of the HTML caption element in a control. This property is provided to make the control more accessible to users of assistive technology devices.

CellPaddingint.

Gets or sets the amount of space between the contents of a cell and the cell's border.

CellSpacingint.

Gets or sets the amount of space between cells.

[read-only]
override
ControlsSystem.Web.UI.ControlCollection.

Gets a System.Web.UI.ControlCollection object that contains a collection of child controls in a data listing control.

DataKeyFieldstring.

Gets or sets the key field in the data source specified by the BaseDataList.DataSource property.

[read-only]
DataKeysDataKeyCollection.

Gets a System.Web.UI.WebControls.DataKeyCollection object that stores the key values of each record in a data listing control.

DataMemberstring.

Gets or sets the specific data member in a multimember data source to bind to a data listing control.

DataSourceobject.

Gets or sets the source containing a list of values used to populate the items within the control.

DataSourceIDstring.

Gets or sets the System.Web.UI.Control.ID property of the data source control that the data listing control should use to retrieve its data source.

GridLinesGridLines.

Gets or sets a value that specifies whether the border between the cells of a data listing control is displayed.

HorizontalAlignHorizontalAlign.

Gets or sets the horizontal alignment of a data listing control within its container.

UseAccessibleHeaderbool.

Gets or sets a value indicating whether the data listing control renders its header in an accessible format. This property is provided to make the control more accessible to users of assistive technology devices.

Protected Properties

[read-only]
DataKeysArrayArrayList.

Gets an ArrayList object that contains the key values of each record in a data listing control.

[read-only]
Initializedbool.

Gets a value indicating whether the control has been initialized.

[read-only]
IsBoundUsingDataSourceIDbool.

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

RequiresDataBindingbool.

Gets or sets a value indicating whether the data listing control needs to bind to its specified data source.

[read-only]
SelectArgumentsSystem.Web.UI.DataSourceSelectArguments.

Gets a System.Web.UI.DataSourceSelectArguments object that the data-bound control uses when retrieving data from a data source control.

Public Methods

override
DataBind()

Binds the control and all its child controls to the specified data source.

static
IsBindableType(Type) : bool

Determines whether the specified data type can be bound to a list control that derives from the System.Web.UI.WebControls.BaseDataList class.

Protected Methods

override
AddParsedSubObject(object)

Notifies the server control that an element, either XML or HTML, was parsed, and adds the element to the server control's System.Web.UI.ControlCollection collection.

override
CreateChildControls()

Creates a child control using the view state.

abstract
CreateControlHierarchy(bool)

When overridden in a derived class, creates the control hierarchy for the data listing control with or without the specified data source.

CreateDataSourceSelectArguments() : System.Web.UI.DataSourceSelectArguments

Creates a default System.Web.UI.DataSourceSelectArguments object used by the data-bound control if no arguments are specified.

EnsureDataBound()

Verifies that the data listing control requires data binding and that a valid data source control is specified before calling the BaseDataList.DataBind method.

GetData() : IEnumerable

Returns an IEnumerable-implemented object that represents the data source.

override
OnDataBinding(EventArgs)

Raises the System.Web.UI.Control.DataBinding event of a System.Web.UI.WebControls.BaseDataList control.

OnDataPropertyChanged()

Called when one of the base data source identification properties is changed, to rebind the data-bound control to its data.

OnDataSourceViewChanged(object, EventArgs)

Raises the System.Web.UI.DataSourceView.DataSourceViewChanged event.

override
OnInit(EventArgs)

Raises the System.Web.UI.Control.Init event for the System.Web.UI.WebControls.BaseDataList control.

override
OnLoad(EventArgs)

Raises the System.Web.UI.Control.Load event.

OnPagePreLoad(object, EventArgs)
Documentation for this section has not yet been entered.
override
OnPreRender(EventArgs)

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

OnSelectedIndexChanged(EventArgs)

Raises the BaseDataList.SelectedIndexChanged event of a System.Web.UI.WebControls.BaseDataList control.

abstract
PrepareControlHierarchy()

Sets up the control hierarchy for the data-bound control.

override
Render(System.Web.UI.HtmlTextWriter)

Renders the control to the specified HTML writer.

Public Events

SelectedIndexChanged

Occurs when a different item is selected in a data listing control between posts to the server.