This documentation is archived and is not being maintained.
DataGrid.Items Property
.NET Framework 1.1
Gets a collection of DataGridItem objects that represent the individual items in the DataGrid control.
[Visual Basic] Public Overridable ReadOnly Property Items As _ DataGridItemCollection [C#] public virtual DataGridItemCollection Items {get;} [C++] public: __property virtual DataGridItemCollection* get_Items(); [JScript] public function get Items() : DataGridItemCollection;
Property Value
A DataGridItemCollection that contains a collection of DataGridItem objects representing the individual items in the DataGrid control.
Remarks
Use the Items collection to programmatically control the items in the DataGrid control. The Items collection does not provide any methods to add or remove items to the collection. However, you can control the contents of an item by providing a handler for the ItemCreated event.
Note Only items bound to the data source are contained in the Items collection. The header, footer, and separator are not included in the collection.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
DataGrid Class | DataGrid Members | System.Web.UI.WebControls Namespace | DataGridItemCollection | DataGridItem
Show: