DetailsView Properties
.NET Framework 2.0
(see also
Protected Properties
)
Top
| Name | Description | |
|---|---|---|
| AccessKey | Gets or sets the access key that allows you to quickly navigate to the Web server control. (Inherited from WebControl.) |
| AllowPaging | Gets or sets a value indicating whether the paging feature is enabled. |
| AlternatingRowStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of the alternating data rows in a DetailsView control. |
| AppRelativeTemplateSourceDirectory | Gets or sets the application-relative virtual directory of the Page or UserControl object that contains this control. (Inherited from Control.) |
| Attributes | Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control. (Inherited from WebControl.) |
| AutoGenerateDeleteButton | Gets or sets a value indicating whether the built-in control to delete the current record is displayed in a DetailsView control. |
| AutoGenerateEditButton | Gets or sets a value indicating whether the built-in controls to edit the current record are displayed in a DetailsView control. |
| AutoGenerateInsertButton | Gets or sets a value indicating whether the built-in controls to insert a new record are displayed in a DetailsView control. |
| AutoGenerateRows | Gets or sets a value indicating whether row fields for each field in the data source are automatically generated and displayed in a DetailsView control. |
| BackColor | Gets or sets the background color of the Web server control. (Inherited from WebControl.) |
| BackImageUrl | Gets or sets the URL to an image to display in the background of a DetailsView control. |
| BindingContainer | Gets the control that contains this control's data binding. (Inherited from Control.) |
| BorderColor | Gets or sets the border color of the Web control. (Inherited from WebControl.) |
| BorderStyle | Gets or sets the border style of the Web server control. (Inherited from WebControl.) |
| BorderWidth | Gets or sets the border width of the Web server control. (Inherited from WebControl.) |
| BottomPagerRow | Gets a DetailsViewRow object that represents the bottom pager row in a DetailsView control. |
| Caption | Gets or sets the text to render in an HTML caption element in a DetailsView control. This property is provided to make the control more accessible to users of assistive technology devices. |
| CaptionAlign | Gets or sets the horizontal or vertical position of the HTML caption element in a DetailsView control. This property is provided to make the control more accessible to users of assistive technology devices. |
| CellPadding | Gets or sets the amount of space between the contents of a cell and the cell's border. |
| CellSpacing | Gets or sets the amount of space between cells. |
| ClientID | Gets the server control identifier generated by ASP.NET. (Inherited from Control.) |
| CommandRowStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of a command row in a DetailsView control. |
| Controls | Gets a collection of the child controls within the composite data-bound control. (Inherited from CompositeDataBoundControl.) |
| ControlStyle | Gets the style of the Web server control. This property is used primarily by control developers. (Inherited from WebControl.) |
| ControlStyleCreated | Gets a value indicating whether a Style object has been created for the ControlStyle property. This property is primarily used by control developers. (Inherited from WebControl.) |
| CssClass | Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client. (Inherited from WebControl.) |
| CurrentMode | Gets the current data-entry mode of the DetailsView control. |
| DataItem | Gets the data item bound to the DetailsView control. |
| DataItemCount | Gets the number of items in the underlying data source. |
| DataItemIndex | Gets the index of the item being displayed in a DetailsView control from the underlying data source. |
| DataKey | Gets a DataKey object that represents the primary key of the displayed record. |
| DataKeyNames | Gets or sets an array that contains the names of the key fields for the data source. |
| DataMember | Gets or sets the name of the list of data that the data-bound control binds to, in cases where the data source contains more than one distinct list of data items. (Inherited from DataBoundControl.) |
| DataSource | Gets or sets the object from which the data-bound control retrieves its list of data items. (Inherited from BaseDataBoundControl.) |
| DataSourceID | Gets or sets the ID of the control from which the data-bound control retrieves its list of data items. (Inherited from DataBoundControl.) |
| DefaultMode | Get or sets the default data-entry mode of the DetailsView control. |
| EditRowStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of the data rows when a DetailsView control is in edit mode. |
| EmptyDataRowStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of the empty data row displayed when the data source bound to a DetailsView control does not contain any records. |
| EmptyDataTemplate | Gets or sets the user-defined content for the empty data row rendered when a DetailsView control is bound to a data source that does not contain any records. |
| EmptyDataText | Gets or sets the text to display in the empty data row rendered when a DetailsView control is bound to a data source that does not contain any records. |
| Enabled | Gets or sets a value indicating whether the Web server control is enabled. (Inherited from WebControl.) |
| EnablePagingCallbacks | Gets or sets a value indicating whether client-side callback functions are used for paging operations in the DetailsView control. |
| EnableTheming | Gets or sets a value indicating whether themes apply to this control. (Inherited from WebControl.) |
| EnableViewState | Gets or sets a value indicating whether the server control persists its view state, and the view state of any child controls it contains, to the requesting client. (Inherited from Control.) |
| FieldHeaderStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of the header column in a DetailsView control. |
| Fields | Gets a collection of DataControlField objects that represent the explicitly declared row fields in a DetailsView control. |
| Font | Gets the font properties associated with the Web server control. (Inherited from WebControl.) |
| FooterRow | Gets a DetailsViewRow object that represents the footer row in a DetailsView control. |
| FooterStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of the footer row in a DetailsView control. |
| FooterTemplate | Gets or sets the user-defined content for the footer row in a DetailsView control. |
| FooterText | Gets or sets the text to display in the footer row of a DetailsView control. |
| ForeColor | Gets or sets the foreground color (typically the color of the text) of the Web server control. (Inherited from WebControl.) |
| GridLines | Gets or sets the gridline style for a DetailsView control. |
| HasAttributes | Gets a value indicating whether the control has attributes set. (Inherited from WebControl.) |
| HeaderRow | Gets a DetailsViewRow object that represents the header row in a DetailsView control. |
| HeaderStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of the header row in a DetailsView control. |
| HeaderTemplate | Gets or sets the user-defined content for the header row in a DetailsView control. |
| HeaderText | Gets or sets the text to display in the header row of a DetailsView control. |
| Height | Gets or sets the height of the Web server control. (Inherited from WebControl.) |
| HorizontalAlign | Gets or sets the horizontal alignment of a DetailsView control on the page. |
| ID | Gets or sets the programmatic identifier assigned to the server control. (Inherited from Control.) |
| InsertRowStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of the data rows in a DetailsView control when the DetailsView control is in insert mode. |
| NamingContainer | Gets a reference to the server control's naming container, which creates a unique namespace for differentiating between server controls with the same Control.ID property value. (Inherited from Control.) |
| Page | Gets a reference to the Page instance that contains the server control. (Inherited from Control.) |
| PageCount | Gets the number of records in the data source. |
| PageIndex | Gets or sets the index of the displayed record. |
| PagerSettings | Gets a reference to the PagerSettings object that allows you to set the properties of the pager buttons in a DetailsView control. |
| PagerStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of the pager row in a DetailsView control. |
| PagerTemplate | Gets or sets the custom content for the pager row in a DetailsView control. |
| Parent | Gets a reference to the server control's parent control in the page control hierarchy. (Inherited from Control.) |
| Rows | Gets a collection of DetailsViewRow objects that represent the data rows in a DetailsView control. |
| RowStyle | Gets a reference to the TableItemStyle object that allows you to set the appearance of the data rows in a DetailsView control. |
| SelectedValue | Gets the data key value of the current record in a DetailsView control. |
| Site | Gets information about the container that hosts the current control when rendered on a design surface. (Inherited from Control.) |
| SkinID | Gets or sets the skin to apply to the control. (Inherited from WebControl.) |
| Style | Gets a collection of text attributes that will be rendered as a style attribute on the outer tag of the Web server control. (Inherited from WebControl.) |
| TabIndex | Gets or sets the tab index of the Web server control. (Inherited from WebControl.) |
| TemplateControl | Gets or sets a reference to the template that contains this control. (Inherited from Control.) |
| TemplateSourceDirectory | Gets the virtual directory of the Page or UserControl that contains the current server control. (Inherited from Control.) |
| ToolTip | Gets or sets the text displayed when the mouse pointer hovers over the Web server control. (Inherited from WebControl.) |
| TopPagerRow | Gets a DetailsViewRow object that represents the top pager row in a DetailsView control. |
| UniqueID | Gets the unique, hierarchically qualified identifier for the server control. (Inherited from Control.) |
| Visible | Gets or sets a value that indicates whether a server control is rendered as UI on the page. (Inherited from Control.) |
| Width | Gets or sets the width of the Web server control. (Inherited from WebControl.) |
| Name | Description | |
|---|---|---|
| Adapter | Gets the browser-specific adapter for the control. (Inherited from Control.) |
| ChildControlsCreated | Gets a value that indicates whether the server control's child controls have been created. (Inherited from Control.) |
| ClientIDSeparator | Gets a character value representing the separator character used in the ClientID property. (Inherited from Control.) |
| Context | Gets the HttpContext object associated with the server control for the current Web request. (Inherited from Control.) |
| DesignMode | Gets a value indicating whether a control is being used on a design surface. (Inherited from Control.) |
| Events | Gets a list of event handler delegates for the control. This property is read-only. (Inherited from Control.) |
| HasChildViewState | Gets a value indicating whether the current server control's child controls have any saved view-state settings. (Inherited from Control.) |
| IdSeparator | Gets the character used to separate control identifiers. (Inherited from Control.) |
| Initialized | Gets a value indicating whether the data-bound control has been initialized. (Inherited from BaseDataBoundControl.) |
| IsBoundUsingDataSourceID | Gets a value indicating whether the DataSourceID property is set. (Inherited from BaseDataBoundControl.) |
| IsChildControlStateCleared | Gets a value indicating whether controls contained within this control have control state. (Inherited from Control.) |
| IsEnabled | Gets a value indicating whether the control is enabled. (Inherited from WebControl.) |
| IsTrackingViewState | Gets a value that indicates whether the server control is saving changes to its view state. (Inherited from Control.) |
| IsViewStateEnabled | Gets a value indicating whether view state is enabled for this control. (Inherited from Control.) |
| LoadViewStateByID | Gets a value indicating whether the control participates in loading its view state by ID instead of index. (Inherited from Control.) |
| RequiresDataBinding | Gets or sets a value indicating whether the DataBind method should be called. (Inherited from BaseDataBoundControl.) |
| SelectArguments | Gets a DataSourceSelectArguments object that the data-bound control uses when retrieving data from a data source control. (Inherited from DataBoundControl.) |
| TagKey | Gets the HtmlTextWriterTag value for the DetailsView control. |
| TagName | Gets the name of the control tag. This property is used primarily by control developers. (Inherited from WebControl.) |
| ViewState | Gets a dictionary of state information that allows you to save and restore the view state of a server control across multiple requests for the same page. (Inherited from Control.) |
| ViewStateIgnoresCase | Gets a value that indicates whether the StateBag object is case-insensitive. (Inherited from Control.) |
| Name | Description | |
|---|---|---|
| System.Web.UI.IDataItemContainer.DataItemIndex | For a description of this member, see IDataItemContainer.DataItemIndex. |
| System.Web.UI.IDataItemContainer.DisplayIndex | For a description of this member, see IDataItemContainer.DisplayIndex. |
Reference
DetailsView ClassSystem.Web.UI.WebControls Namespace
IsPrimitive
AccessDataSource Class
AllowPaging
AutoGenerateRows
AutoGenerateDeleteButton
AutoGenerateEditButton
AutoGenerateInsertButton
Fields
Rows
BoundField Class
ButtonField Class
CommandField Class
CheckBoxField Class
GridView
HyperLinkField
SqlDataSource
TemplateField
Other Resources
Using Parameters with Data Source ControlsData Source Controls Overview
ASP.NET Data Access Overview
Community Additions
ADD
Show: