DataGrid.Items Property
.NET Framework 3.0
Gets a collection of DataGridItem objects that represent the individual items in the DataGrid control.
Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)
Assembly: System.Web (in system.web.dll)
/** @property */ public DataGridItemCollection get_Items ()
public function get Items () : DataGridItemCollection
Not applicable.
Property Value
A DataGridItemCollection that contains a collection of DataGridItem objects representing the individual items in the DataGrid control.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. |
Community Additions
ADD
Show:
Note: