Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
DataGrid Class

  Switch on low bandwidth view
Members FilterMembers Filter
Frameworks FilterFrameworks Filter
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
DataGrid Properties

The DataGrid type exposes the following members.

  NameDescription
Public propertyAccessKey Gets or sets the access key that allows you to quickly navigate to the Web server control. (Inherited from WebControl.)
Protected propertyAdapterGets the browser-specific adapter for the control. (Inherited from Control.)
Public propertyAllowCustomPaging Gets or sets a value that indicates whether custom paging is enabled.
Public propertyAllowPaging Gets or sets a value that indicates whether paging is enabled.
Public propertyAllowSorting Gets or sets a value that indicates whether sorting is enabled.
Public propertyAlternatingItemStyle Gets the style properties for alternating items in the DataGrid control.
Public propertyAppRelativeTemplateSourceDirectoryGets or sets the application-relative virtual directory of the Page or UserControl object that contains this control. (Inherited from Control.)
Public propertyAttributes Gets the collection of arbitrary attributes (for rendering only) that do not correspond to properties on the control. (Inherited from WebControl.)
Public propertyAutoGenerateColumns Gets or sets a value that indicates whether BoundColumn objects are automatically created and displayed in the DataGrid control for each field in the data source.
Public propertyBackColor Gets or sets the background color of the Web server control. (Inherited from WebControl.)
Public propertyBackImageUrl Gets or sets the URL of an image to display in the background of the DataGrid control.
Public propertyBindingContainerInfrastructure. Gets the control that contains this control's data binding. (Inherited from Control.)
Public propertyBorderColor Gets or sets the border color of the Web control. (Inherited from WebControl.)
Public propertyBorderStyle Gets or sets the border style of the Web server control. (Inherited from WebControl.)
Public propertyBorderWidth Gets or sets the border width of the Web server control. (Inherited from WebControl.)
Public propertyCaption Gets or sets the text to render in an HTML caption element in the control. This property is provided to make the control more accessible to users of assistive technology devices. (Inherited from BaseDataList.)
Public propertyCaptionAlign Gets or sets the horizontal or vertical position of the HTML caption element in a control. This property is provided to make the control more accessible to users of assistive technology devices. (Inherited from BaseDataList.)
Public propertyCellPadding Gets or sets the amount of space between the contents of a cell and the cell's border. (Inherited from BaseDataList.)
Public propertyCellSpacing Gets or sets the amount of space between cells. (Inherited from BaseDataList.)
Protected propertyChildControlsCreatedGets a value that indicates whether the server control's child controls have been created. (Inherited from Control.)
Public propertyClientIDGets the server control identifier generated by ASP.NET. (Inherited from Control.)
Protected propertyClientIDSeparatorGets a character value representing the separator character used in the ClientID property. (Inherited from Control.)
Public propertyColumns Gets a collection of objects that represent the columns of the DataGrid control.
Protected propertyContextGets the HttpContext object associated with the server control for the current Web request. (Inherited from Control.)
Public propertyControls Gets a System.Web.UI..::.ControlCollection object that contains a collection of child controls in a data listing control. (Inherited from BaseDataList.)
Public propertyControlStyle Gets the style of the Web server control. This property is used primarily by control developers. (Inherited from WebControl.)
Public propertyControlStyleCreated 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.)
Public propertyCssClass Gets or sets the Cascading Style Sheet (CSS) class rendered by the Web server control on the client. (Inherited from WebControl.)
Public propertyCurrentPageIndex Gets or sets the index of the currently displayed page.
Public propertyDataKeyField Gets or sets the key field in the data source specified by the DataSource property. (Inherited from BaseDataList.)
Public propertyDataKeys Gets a DataKeyCollection object that stores the key values of each record in a data listing control. (Inherited from BaseDataList.)
Protected propertyDataKeysArray Gets an ArrayList object that contains the key values of each record in a data listing control. (Inherited from BaseDataList.)
Public propertyDataMember Gets or sets the specific data member in a multimember data source to bind to a data listing control. (Inherited from BaseDataList.)
Public propertyDataSource Gets or sets the source containing a list of values used to populate the items within the control. (Inherited from BaseDataList.)
Public propertyDataSourceID Gets or sets the ID property of the data source control that the data listing control should use to retrieve its data source. (Inherited from BaseDataList.)
Protected propertyDesignModeGets a value indicating whether a control is being used on a design surface. (Inherited from Control.)
Public propertyEditItemIndex Gets or sets the index of an item in the DataGrid control to edit.
Public propertyEditItemStyle Gets the style properties of the item selected for editing in the DataGrid control.
Public propertyEnabled Gets or sets a value indicating whether the Web server control is enabled. (Inherited from WebControl.)
Public propertyEnableTheming Gets or sets a value indicating whether themes apply to this control. (Inherited from WebControl.)
Public propertyEnableViewStateGets 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.)
Protected propertyEventsGets a list of event handler delegates for the control. This property is read-only. (Inherited from Control.)
Public propertyFont Gets the font properties associated with the Web server control. (Inherited from WebControl.)
Public propertyFooterStyle Gets the style properties of the footer section in the DataGrid control.
Public propertyForeColor Gets or sets the foreground color (typically the color of the text) of the Web server control. (Inherited from WebControl.)
Public propertyGridLines Gets or sets a value that specifies whether the border between the cells of a data listing control is displayed. (Inherited from BaseDataList.)
Public propertyHasAttributes Gets a value indicating whether the control has attributes set. (Inherited from WebControl.)
Protected propertyHasChildViewStateGets a value indicating whether the current server control's child controls have any saved view-state settings. (Inherited from Control.)
Public propertyHeaderStyle Gets the style properties of the heading section in the DataGrid control.
Public propertyHeight Gets or sets the height of the Web server control. (Inherited from WebControl.)
Public propertyHorizontalAlign Gets or sets the horizontal alignment of a data listing control within its container. (Inherited from BaseDataList.)
Public propertyIDGets or sets the programmatic identifier assigned to the server control. (Inherited from Control.)
Protected propertyIdSeparatorInfrastructure. Gets the character used to separate control identifiers. (Inherited from Control.)
Protected propertyInitialized Gets a value indicating whether the control has been initialized. (Inherited from BaseDataList.)
Protected propertyIsBoundUsingDataSourceID Gets a value indicating whether the DataSourceID property is set. (Inherited from BaseDataList.)
Protected propertyIsChildControlStateClearedGets a value indicating whether controls contained within this control have control state. (Inherited from Control.)
Protected propertyIsEnabled Gets a value indicating whether the control is enabled. (Inherited from WebControl.)
Protected propertyIsTrackingViewStateGets a value that indicates whether the server control is saving changes to its view state. (Inherited from Control.)
Protected propertyIsViewStateEnabledGets a value indicating whether view state is enabled for this control. (Inherited from Control.)
Public propertyItems Gets a collection of DataGridItem objects that represent the individual items in the DataGrid control.
Public propertyItemStyle Gets the style properties of the items in the DataGrid control.
Protected propertyLoadViewStateByIDGets a value indicating whether the control participates in loading its view state by ID instead of index. (Inherited from Control.)
Public propertyNamingContainerGets 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.)
Public propertyPageGets a reference to the Page instance that contains the server control. (Inherited from Control.)
Public propertyPageCount Gets the total number of pages required to display the items in the DataGrid control.
Public propertyPagerStyle Gets the style properties of the paging section of the DataGrid control.
Public propertyPageSize Gets or sets the number of items to display on a single page of the DataGrid control.
Public propertyParentGets a reference to the server control's parent control in the page control hierarchy. (Inherited from Control.)
Protected propertyRequiresDataBinding Gets or sets a value indicating whether the data listing control needs to bind to its specified data source. (Inherited from BaseDataList.)
Protected propertySelectArguments Gets a DataSourceSelectArguments object that the data-bound control uses when retrieving data from a data source control. (Inherited from BaseDataList.)
Public propertySelectedIndex Gets or sets the index of the selected item in the DataGrid control.
Public propertySelectedItem Gets a DataGridItem object that represents the selected item in the DataGrid control.
Public propertySelectedItemStyle Gets the style properties of the currently selected item in the DataGrid control.
Public propertyShowFooter Gets or sets a value that indicates whether the footer is displayed in the DataGrid control.
Public propertyShowHeader Gets or sets a value that indicates whether the header is displayed in the DataGrid control.
Public propertySiteGets information about the container that hosts the current control when rendered on a design surface. (Inherited from Control.)
Public propertySkinID Gets or sets the skin to apply to the control. (Inherited from WebControl.)
Public propertyStyle 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.)
Public propertyTabIndex Gets or sets the tab index of the Web server control. (Inherited from WebControl.)
Protected propertyTagKeyOverloaded.
Protected propertyTagName Gets the name of the control tag. This property is used primarily by control developers. (Inherited from WebControl.)
Public propertyTemplateControlGets or sets a reference to the template that contains this control. (Inherited from Control.)
Public propertyTemplateSourceDirectoryGets the virtual directory of the Page or UserControl that contains the current server control. (Inherited from Control.)
Public propertyToolTip Gets or sets the text displayed when the mouse pointer hovers over the Web server control. (Inherited from WebControl.)
Public propertyUniqueIDGets the unique, hierarchically qualified identifier for the server control. (Inherited from Control.)
Public propertyUseAccessibleHeader Gets or sets a value indicating whether the data listing control renders its header in an accessible format. This property is provided to make the control more accessible to users of assistive technology devices. (Inherited from BaseDataList.)
Protected propertyViewStateGets 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.)
Protected propertyViewStateIgnoresCaseGets a value that indicates whether the StateBag object is case-insensitive. (Inherited from Control.)
Public propertyVirtualItemCount Gets or sets the virtual number of items in the DataGrid control when custom paging is used.
Public propertyVisibleGets or sets a value that indicates whether a server control is rendered as UI on the page. (Inherited from Control.)
Public propertyWidth Gets or sets the width of the Web server control. (Inherited from WebControl.)
Top
  NameDescription
Explicit interface implemetationPrivate propertyIControlBuilderAccessor..::.ControlBuilderFor a description of this member, see IControlBuilderAccessor..::.ControlBuilder. (Inherited from Control.)
Explicit interface implemetationPrivate propertyIDataBindingsAccessor..::.DataBindingsFor a description of this member, see IDataBindingsAccessor..::.DataBindings. (Inherited from Control.)
Explicit interface implemetationPrivate propertyIExpressionsAccessor..::.ExpressionsFor a description of this member, see IExpressionsAccessor..::.Expressions. (Inherited from Control.)
Explicit interface implemetationPrivate propertyIDataBindingsAccessor..::.HasDataBindingsFor a description of this member, see IDataBindingsAccessor..::.HasDataBindings. (Inherited from Control.)
Explicit interface implemetationPrivate propertyIExpressionsAccessor..::.HasExpressionsFor a description of this member, see IExpressionsAccessor..::.HasExpressions. (Inherited from Control.)
Explicit interface implemetationPrivate propertyIControlDesignerAccessor..::.UserDataFor a description of this member, see IControlDesignerAccessor..::.UserData. (Inherited from Control.)
Top
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use  |  Trademarks  |  Privacy Statement
Page view tracker