System.Web.UI.WebControls.DetailsView Members

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

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

Public Constructors

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

Public Properties

AllowPagingbool.

Gets or sets a value indicating whether the paging feature is enabled.

[read-only]
AlternatingRowStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of the alternating data rows in a System.Web.UI.WebControls.DetailsView control.

AutoGenerateDeleteButtonbool.

Gets or sets a value indicating whether the built-in control to delete the current record is displayed in a System.Web.UI.WebControls.DetailsView control.

AutoGenerateEditButtonbool.

Gets or sets a value indicating whether the built-in controls to edit the current record are displayed in a System.Web.UI.WebControls.DetailsView control.

AutoGenerateInsertButtonbool.

Gets or sets a value indicating whether the built-in controls to insert a new record are displayed in a System.Web.UI.WebControls.DetailsView control.

AutoGenerateRowsbool.

Gets or sets a value indicating whether row fields for each field in the data source are automatically generated and displayed in a System.Web.UI.WebControls.DetailsView control.

BackImageUrlstring.

Gets or sets the URL to an image to display in the background of a System.Web.UI.WebControls.DetailsView control.

[read-only]
BottomPagerRowDetailsViewRow.

Gets a System.Web.UI.WebControls.DetailsViewRow object that represents the bottom pager row in a System.Web.UI.WebControls.DetailsView control.

Captionstring.

Gets or sets the text to render in an HTML caption element in a System.Web.UI.WebControls.DetailsView 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 System.Web.UI.WebControls.DetailsView 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]
CommandRowStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of a command row in a System.Web.UI.WebControls.DetailsView control.

[read-only]
CurrentModeDetailsViewMode.

Gets the current data-entry mode of the System.Web.UI.WebControls.DetailsView control.

[read-only]
DataItemobject.

Gets the data item bound to the System.Web.UI.WebControls.DetailsView control.

[read-only]
DataItemCountint.

Gets the number of items in the underlying data source.

[read-only]
DataItemIndexint.

Gets the index of the item being displayed in a System.Web.UI.WebControls.DetailsView control from the underlying data source.

[read-only]
DataKeyDataKey.

Gets a System.Web.UI.WebControls.DataKey object that represents the primary key of the displayed record.

DataKeyNamesstring[].

Gets or sets an array that contains the names of the key fields for the data source.

DefaultModeDetailsViewMode.

Get or sets the default data-entry mode of the System.Web.UI.WebControls.DetailsView control.

[read-only]
EditRowStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of the data rows when a System.Web.UI.WebControls.DetailsView control is in edit mode.

[read-only]
EmptyDataRowStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of the empty data row displayed when the data source bound to a System.Web.UI.WebControls.DetailsView control does not contain any records.

EmptyDataTemplateSystem.Web.UI.ITemplate.

Gets or sets the user-defined content for the empty data row rendered when a System.Web.UI.WebControls.DetailsView control is bound to a data source that does not contain any records.

EmptyDataTextstring.

Gets or sets the text to display in the empty data row rendered when a System.Web.UI.WebControls.DetailsView control is bound to a data source that does not contain any records.

EnablePagingCallbacksbool.

Gets or sets a value indicating whether client-side callback functions are used for paging operations in the System.Web.UI.WebControls.DetailsView control.

[read-only]
FieldHeaderStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of the header column in a System.Web.UI.WebControls.DetailsView control.

[read-only]
FieldsDataControlFieldCollection.

Gets a collection of System.Web.UI.WebControls.DataControlField objects that represent the explicitly declared row fields in a System.Web.UI.WebControls.DetailsView control.

[read-only]
FooterRowDetailsViewRow.

Gets a System.Web.UI.WebControls.DetailsViewRow object that represents the footer row in a System.Web.UI.WebControls.DetailsView control.

[read-only]
FooterStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of the footer row in a System.Web.UI.WebControls.DetailsView control.

FooterTemplateSystem.Web.UI.ITemplate.

Gets or sets the user-defined content for the footer row in a System.Web.UI.WebControls.DetailsView control.

FooterTextstring.

Gets or sets the text to display in the footer row of a System.Web.UI.WebControls.DetailsView control.

GridLinesGridLines.

Gets or sets the gridline style for a System.Web.UI.WebControls.DetailsView control.

[read-only]
HeaderRowDetailsViewRow.

Gets a System.Web.UI.WebControls.DetailsViewRow object that represents the header row in a System.Web.UI.WebControls.DetailsView control.

[read-only]
HeaderStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of the header row in a System.Web.UI.WebControls.DetailsView control.

HeaderTemplateSystem.Web.UI.ITemplate.

Gets or sets the user-defined content for the header row in a System.Web.UI.WebControls.DetailsView control.

HeaderTextstring.

Gets or sets the text to display in the header row of a System.Web.UI.WebControls.DetailsView control.

HorizontalAlignHorizontalAlign.

Gets or sets the horizontal alignment of a System.Web.UI.WebControls.DetailsView control on the page.

[read-only]
InsertRowStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of the data rows in a System.Web.UI.WebControls.DetailsView control when the System.Web.UI.WebControls.DetailsView control is in insert mode.

[read-only]
PageCountint.

Gets the number of records in the data source.

PageIndexint.

Gets or sets the index of the displayed record.

[read-only]
PagerSettingsPagerSettings.

Gets a reference to the System.Web.UI.WebControls.PagerSettings object that allows you to set the properties of the pager buttons in a System.Web.UI.WebControls.DetailsView control.

[read-only]
PagerStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of the pager row in a System.Web.UI.WebControls.DetailsView control.

PagerTemplateSystem.Web.UI.ITemplate.

Gets or sets the custom content for the pager row in a System.Web.UI.WebControls.DetailsView control.

[read-only]
RowsDetailsViewRowCollection.

Gets a collection of System.Web.UI.WebControls.DetailsViewRow objects that represent the data rows in a System.Web.UI.WebControls.DetailsView control.

[read-only]
RowStyleTableItemStyle.

Gets a reference to the System.Web.UI.WebControls.TableItemStyle object that allows you to set the appearance of the data rows in a System.Web.UI.WebControls.DetailsView control.

[read-only]
SelectedValueobject.

Gets the data key value of the current record in a System.Web.UI.WebControls.DetailsView control.

[read-only]
TopPagerRowDetailsViewRow.

Gets a System.Web.UI.WebControls.DetailsViewRow object that represents the top pager row in a System.Web.UI.WebControls.DetailsView control.

Protected Properties

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.

Public Events

ItemCommand

Occurs when a button within a System.Web.UI.WebControls.DetailsView control is clicked.

ItemCreated

Occurs when a record is created in a System.Web.UI.WebControls.DetailsView control.

ItemDeleted

Occurs when a Delete button within a System.Web.UI.WebControls.DetailsView control is clicked, but after the delete operation.

ItemDeleting

Occurs when a Delete button within a System.Web.UI.WebControls.DetailsView control is clicked, but before the delete operation.

ItemInserted

Occurs when an Insert button within a System.Web.UI.WebControls.DetailsView control is clicked, but after the insert operation.

ItemInserting

Occurs when an Insert button within a System.Web.UI.WebControls.DetailsView control is clicked, but before the insert operation.

ItemUpdated

Occurs when an Update button within a System.Web.UI.WebControls.DetailsView control is clicked, but after the update operation.

ItemUpdating

Occurs when an Update button within a System.Web.UI.WebControls.DetailsView control is clicked, but before the update operation.

ModeChanged

Occurs when a System.Web.UI.WebControls.DetailsView control attempts to change between edit, insert, and read-only mode, but after the DetailsView.CurrentMode property is updated.

ModeChanging

Occurs when a System.Web.UI.WebControls.DetailsView control attempts to change between edit, insert, and read-only mode, but before the DetailsView.CurrentMode property is updated.

PageIndexChanged

Occurs when the value of the DetailsView.PageIndex property changes after a paging operation.

PageIndexChanging

Occurs when the value of the DetailsView.PageIndex property changes before a paging operation.

Explicitly Implemented Interface Members