System.Web.UI.WebControls.ListControl Members

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

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

Public Constructors

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

Public Properties

AppendDataBoundItemsbool.

Gets or sets a value that indicates whether list items are cleared before data binding.

AutoPostBackbool.

Gets or sets a value indicating whether a postback to the server automatically occurs when the user changes the list selection.

CausesValidationbool.

Gets or sets a value indicating whether validation is performed when a control that is derived from the System.Web.UI.WebControls.ListControl class is clicked.

DataMemberstring. Documentation for this section has not yet been entered.
DataSourceobject. Documentation for this section has not yet been entered.
DataTextFieldstring.

Gets or sets the field of the data source that provides the text content of the list items.

DataTextFormatStringstring.

Gets or sets the formatting string used to control how data bound to the list control is displayed.

DataValueFieldstring.

Gets or sets the field of the data source that provides the value of each list item.

[read-only]
ItemsListItemCollection.

Gets the collection of items in the list control.

SelectedIndexint.

Gets or sets the lowest ordinal index of the selected items in the list.

[read-only]
SelectedItemListItem.

Gets the selected item with the lowest index in the list control.

SelectedValuestring.

Gets the value of the selected item in the list control, or selects the item in the list control that contains the specified value.

Textstring.

Gets or sets the ListControl.SelectedValue property of the System.Web.UI.WebControls.ListControl control.

ValidationGroupstring.

Gets or sets the group of controls for which the control that is derived from the System.Web.UI.WebControls.ListControl class causes validation when it posts back to the server.

Protected Properties

Public Methods

ClearSelection()

Clears out the list selection and sets the ListItem.Selected property of all items to false.

Protected Methods

override
AddAttributesToRender(System.Web.UI.HtmlTextWriter)

Applies HTML attributes and styles to render to the specified System.Web.UI.HtmlTextWriter object.

override
LoadViewState(object)

Loads the previously saved view state of the System.Web.UI.WebControls.DetailsView control.

override
OnDataBinding(EventArgs)

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

override
OnPreRender(EventArgs)

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

OnSelectedIndexChanged(EventArgs)

Raises the ListControl.SelectedIndexChanged event. This allows you to provide a custom handler for the event.

OnTextChanged(EventArgs)

Raises the ListControl.TextChanged event.

override
PerformDataBinding(IEnumerable)

Binds the specified data source to the control that is derived from the System.Web.UI.WebControls.ListControl class.

override
PerformSelect()

Retrieves data from the associated data source.

override
RenderContents(System.Web.UI.HtmlTextWriter)

Renders the items in the System.Web.UI.WebControls.ListControl control.

override
SaveViewState() : object

Saves the current view state of the System.Web.UI.WebControls.ListControl -derived control and the items it contains.

SetPostDataSelection(int)

Sets the ListItem.Selected property of a System.Web.UI.WebControls.ListItem control after a page is posted.

override
TrackViewState()

Marks the starting point to begin tracking and saving view-state changes to a System.Web.UI.WebControls.ListControl -derived control.

VerifyMultiSelect()

Determines whether the list control supports multiselection mode.

Public Events

SelectedIndexChanged

Occurs when the selection from the list control changes between posts to the server.

TextChanged

Occurs when the ListControl.Text and ListControl.SelectedValue properties change.