asp.net.ph

DataGridCommandEventArgs.Item Property

System.Web.UI.WebControls Namespace   DataGridCommandEventArgs Class


Returns the selected item in the DataGrid.

Syntax


Script [ DataGridItem variable = ] DataGridCommandEventArgs.Item

Property Value


variable A DataGridItem that represents the selected item in the DataGrid.

The property is read only with no default value.

Remarks

The Item property is used to access information about the selected item in a DataGrid control.

Example

The following examples demonstrate how to use the Item property to access information about the selected item in a DataGrid control.

DataGrid ItemCommand Event
Run Sample | View Source
ButtonColumn ButtonType Example
Run Sample | View Source
DataGrid EditItemIndex Property
Run Sample | View Source
See Also

DataGridCommandEventArgs   DataGrid   CancelCommand   DeleteCommand   EditCommand   ItemCommand   UpdateCommand Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph