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

The properties 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 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