System.Web.UI.WebControls.DataList Members

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

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

Public Constructors

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

Public Fields

const
CancelCommandNamestring.

Represents the Cancel command name. This field is read-only.

const
DeleteCommandNamestring.

Represents the Delete command name. This field is read-only.

const
EditCommandNamestring.

Represents the Edit command name. This field is read-only.

const
SelectCommandNamestring.

Represents the Select command name. This field is read-only.

const
UpdateCommandNamestring.

Represents the Update command name. This field is read-only.

Public Properties

[read-only]
AlternatingItemStyleTableItemStyle.

Gets the style properties for alternating items in the System.Web.UI.WebControls.DataList control.

AlternatingItemTemplateSystem.Web.UI.ITemplate.

Gets or sets the template for alternating items in the System.Web.UI.WebControls.DataList.

EditItemIndexint.

Gets or sets the index number of the selected item in the System.Web.UI.WebControls.DataList control to edit.

[read-only]
EditItemStyleTableItemStyle.

Gets the style properties for the item selected for editing in the System.Web.UI.WebControls.DataList control.

EditItemTemplateSystem.Web.UI.ITemplate.

Gets or sets the template for the item selected for editing in the System.Web.UI.WebControls.DataList control.

ExtractTemplateRowsbool.

Gets or sets a value that indicates whether the rows of a System.Web.UI.WebControls.Table control, defined in each template of a System.Web.UI.WebControls.DataList control, are extracted and displayed.

[read-only]
FooterStyleTableItemStyle.

Gets the style properties for the footer section of the System.Web.UI.WebControls.DataList control.

FooterTemplateSystem.Web.UI.ITemplate.

Gets or sets the template for the footer section of the System.Web.UI.WebControls.DataList control.

override
GridLinesGridLines.

Gets or sets the grid line style for the System.Web.UI.WebControls.DataList control when the DataList.RepeatLayout property is set to RepeatLayout.Table.

[read-only]
HeaderStyleTableItemStyle.

Gets the style properties for the heading section of the System.Web.UI.WebControls.DataList control.

HeaderTemplateSystem.Web.UI.ITemplate.

Gets or sets the template for the heading section of the System.Web.UI.WebControls.DataList control.

[read-only]
ItemsDataListItemCollection.

Gets a collection of System.Web.UI.WebControls.DataListItem objects representing the individual items within the control.

[read-only]
ItemStyleTableItemStyle.

Gets the style properties for the items in the System.Web.UI.WebControls.DataList control.

ItemTemplateSystem.Web.UI.ITemplate.

Gets or sets the template for the items in the System.Web.UI.WebControls.DataList control.

RepeatColumnsint.

Gets or sets the number of columns to display in the System.Web.UI.WebControls.DataList control.

RepeatDirectionRepeatDirection.

Gets or sets whether the System.Web.UI.WebControls.DataList control displays vertically or horizontally.

RepeatLayoutRepeatLayout.

Gets or sets whether the control is displayed in a table or flow layout.

SelectedIndexint.

Gets or sets the index of the selected item in the System.Web.UI.WebControls.DataList control.

[read-only]
SelectedItemDataListItem.

Gets the selected item in the System.Web.UI.WebControls.DataList control.

[read-only]
SelectedItemStyleTableItemStyle.

Gets the style properties for the selected item in the System.Web.UI.WebControls.DataList control.

SelectedItemTemplateSystem.Web.UI.ITemplate.

Gets or sets the template for the selected item in the System.Web.UI.WebControls.DataList control.

[read-only]
SelectedValueobject.

Gets the value of the key field for the selected data list item.

[read-only]
SeparatorStyleTableItemStyle.

Gets the style properties of the separator between each item in the System.Web.UI.WebControls.DataList control.

SeparatorTemplateSystem.Web.UI.ITemplate.

Gets or sets the template for the separator between the items of the System.Web.UI.WebControls.DataList control.

ShowFooterbool.

Gets or sets a value indicating whether the footer section is displayed in the System.Web.UI.WebControls.DataList control.

ShowHeaderbool.

Gets or sets a value indicating whether the header section is displayed in the System.Web.UI.WebControls.DataList control.

Protected Properties

[read-only]
override
TagKeySystem.Web.UI.HtmlTextWriterTag.

Gets the HTML tag that is used to render the System.Web.UI.WebControls.DataList control.

Protected Methods

override
CreateControlHierarchy(bool)

Creates the control hierarchy that is used to render the data list control, with or without the specified data source.

override
CreateControlStyle() : Style

Creates the default style object that is used internally by the System.Web.UI.WebControls.DataList control to implement all style related properties.

CreateItem(int, ListItemType) : DataListItem

Creates a System.Web.UI.WebControls.DataListItem object.

InitializeItem(DataListItem)

Initializes a System.Web.UI.WebControls.DataListItem object based on the specified templates and styles for the list-item type.

override
LoadViewState(object)

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

override
OnBubbleEvent(object, EventArgs) : bool
Documentation for this section has not yet been entered.
OnCancelCommand(DataListCommandEventArgs)

Raises the DataList.CancelCommand event. This allows you to provide a custom handler for the event.

OnDeleteCommand(DataListCommandEventArgs)

Raises the DataList.DeleteCommand event. This allows you to provide a custom handler for the event.

OnEditCommand(DataListCommandEventArgs)

Raises the DataList.EditCommand event. This allows you to provide a custom handler for the event.

override
OnInit(EventArgs)

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

OnItemCommand(DataListCommandEventArgs)

Raises the DataList.ItemCommand event. This allows you to provide a custom handler for the event.

OnItemCreated(DataListItemEventArgs)

Raises the DataList.ItemCreated event. This allows you to provide a custom handler for the event.

OnItemDataBound(DataListItemEventArgs)

Raises the DataList.ItemDataBound event. This allows you to provide a custom handler for the event.

OnUpdateCommand(DataListCommandEventArgs)

Raises the DataList.UpdateCommand event. This allows you to provide a custom handler for the event.

override
PrepareControlHierarchy()

Prepares the control hierarchy for rendering in the System.Web.UI.WebControls.DataList control.

override
RenderContents(System.Web.UI.HtmlTextWriter)

Renders the list items in the System.Web.UI.WebControls.DataList control.

override
SaveViewState() : object

Saves the changes to the control view state since the time the page was posted back to the server.

override
TrackViewState()

Tracks view-state changes to the System.Web.UI.WebControls.DataList control so they can be stored in the control's System.Web.UI.Control.ViewState property.

Public Events

CancelCommand

Occurs when the Cancel button is clicked for an item in the System.Web.UI.WebControls.DataList control.

DeleteCommand

Occurs when the Delete button is clicked for an item in the System.Web.UI.WebControls.DataList control.

EditCommand

Occurs when the Edit button is clicked for an item in the System.Web.UI.WebControls.DataList control.

ItemCommand

Occurs when any button is clicked in the System.Web.UI.WebControls.DataList control.

ItemCreated

Occurs on the server when an item in the System.Web.UI.WebControls.DataList control is created.

ItemDataBound

Occurs when an item is data bound to the System.Web.UI.WebControls.DataList control.

UpdateCommand

Occurs when the Update button is clicked for an item in the System.Web.UI.WebControls.DataList control.

Explicitly Implemented Interface Members