System.Web.UI.WebControls.DetailsView: Method Members

The methods of System.Web.UI.WebControls.DetailsView are listed below. For a list of all members, see the DetailsView Members list.

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

Public Methods

ChangeMode(DetailsViewMode)

Switches the System.Web.UI.WebControls.DetailsView control to the specified mode.

override
DataBind()

Calls the BaseDataBoundControl.DataBind method of the base class.

DeleteItem()

Deletes the current record from the data source.

InsertItem(bool)

Inserts the current record in the data source.

IsBindableType(Type) : bool

Determines whether the specified data type can be bound to a field in the System.Web.UI.WebControls.DetailsView control.

UpdateItem(bool)

Updates the current record in the data source.

Protected Methods

CreateAutoGeneratedRow(AutoGeneratedFieldProperties) : AutoGeneratedField

Creates an System.Web.UI.WebControls.AutoGeneratedField object that represents an automatically generated row field using the specified field properties.

CreateAutoGeneratedRows(object) : ICollection

Creates a set of automatically generated row fields for the specified data item.

override
CreateChildControls(IEnumerable, bool) : int

Creates the control hierarchy used to render the System.Web.UI.WebControls.DetailsView control.

override
CreateControlStyle() : Style

Creates a default table style object for the System.Web.UI.WebControls.DetailsView control.

override
CreateDataSourceSelectArguments() : System.Web.UI.DataSourceSelectArguments

Creates the System.Web.UI.DataSourceSelectArguments object that gets passed to the Select command.

CreateFieldSet(object, bool) : ICollection

Creates the complete set of automatically generated and user-defined row fields used to generate the control hierarchy.

CreateRow(int, DataControlRowType, DataControlRowState) : DetailsViewRow

Creates a System.Web.UI.WebControls.DetailsViewRow object using the specified item index, row type, and row state.

CreateTable() : Table

Creates the containing table for the System.Web.UI.WebControls.DetailsView control.

override
EnsureDataBound()

Calls the BaseDataBoundControl.DataBind method after verifying that the data listing control requires data binding and that a valid data source control is specified.

ExtractRowValues(System.Collections.Specialized.IOrderedDictionary, bool, bool)

Retrieves the values of each field displayed and stores them in the specified System.Collections.Specialized.IOrderedDictionary object.

GetCallbackResult() : string

Returns the result of a callback event that targets a control.

GetCallbackScript(IButtonControl, string) : string

Returns the callback string created using the specified argument.

InitializePager(DetailsViewRow, PagedDataSource)

Creates the pager row for the System.Web.UI.WebControls.DetailsView control.

InitializeRow(DetailsViewRow, DataControlField)

Initializes the specified System.Web.UI.WebControls.DetailsViewRow object.

override
LoadControlState(object)

Loads the state of the properties in the System.Web.UI.WebControls.DetailsView control that need to be persisted, even when the System.Web.UI.Control.EnableViewState property is set to false.

override
LoadViewState(object)

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

override
OnBubbleEvent(object, EventArgs) : bool

Determines whether the event for the Web server control is passed up the page's user interface (UI) server control hierarchy.

override
OnDataSourceViewChanged(object, EventArgs)

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

override
OnInit(EventArgs)

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

OnItemCommand(DetailsViewCommandEventArgs)

Raises the DetailsView.ItemCommand event.

OnItemCreated(EventArgs)

Raises the DetailsView.ItemCreated event.

OnItemDeleted(DetailsViewDeletedEventArgs)

Raises the DetailsView.ItemDeleted event.

OnItemDeleting(DetailsViewDeleteEventArgs)

Raises the DetailsView.ItemDeleting event.

OnItemInserted(DetailsViewInsertedEventArgs)

Raises the DetailsView.ItemInserted event.

OnItemInserting(DetailsViewInsertEventArgs)

Raises the DetailsView.ItemInserting event.

OnItemUpdated(DetailsViewUpdatedEventArgs)

Raises the DetailsView.ItemUpdated event.

OnItemUpdating(DetailsViewUpdateEventArgs)

Raises the DetailsView.ItemUpdating event.

OnModeChanged(EventArgs)

Raises the DetailsView.ModeChanged event.

OnModeChanging(DetailsViewModeEventArgs)

Raises the DetailsView.ModeChanging event.

OnPageIndexChanged(EventArgs)

Raises the DetailsView.PageIndexChanged event.

OnPageIndexChanging(DetailsViewPageEventArgs)

Raises the DetailsView.PageIndexChanging event.

override
OnPagePreLoad(object, EventArgs)

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

override
OnPreRender(EventArgs)

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

override
PerformDataBinding(IEnumerable)

Binds the specified data source to the System.Web.UI.WebControls.DetailsView control.

PrepareControlHierarchy()

Sets up the control hierarchy of the System.Web.UI.WebControls.DetailsView control.

RaiseCallbackEvent(string)

Creates the arguments for the callback handler in the erload:System.Web.UI.ClientScriptManager.GetCallbackEventReference method.

RaisePostBackEvent(string)

Raises the appropriate events for the System.Web.UI.WebControls.DetailsView control when it posts back to the server.

override
Render(System.Web.UI.HtmlTextWriter)

Displays the System.Web.UI.WebControls.DetailsView control on the client using the specified System.Web.UI.HtmlTextWriter object.

override
SaveControlState() : object

Saves the state of the properties in the System.Web.UI.WebControls.DetailsView control that need to be persisted, even when the System.Web.UI.Control.EnableViewState property is set to false.

override
SaveViewState() : object

Saves the current view state of the System.Web.UI.WebControls.DetailsView control.

override
TrackViewState()

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