This documentation is archived and is not being maintained.
DataGrid.SelectedItem Property
.NET Framework 1.1
Gets a DataGridItem object that represents the selected item in the DataGrid control.
[Visual Basic] Public Overridable ReadOnly Property SelectedItem As DataGridItem [C#] public virtual DataGridItem SelectedItem {get;} [C++] public: __property virtual DataGridItem* get_SelectedItem(); [JScript] public function get SelectedItem() : DataGridItem;
Property Value
A DataGridItem object that represents the selected item in the DataGrid control.
Remarks
Use the SelectedItem property to get a DataGridItem object that represents the selected item in the DataGrid control. This object can then be used to access the properties of the selected item.
Requirements
Platforms: Windows 2000, Windows XP Professional, Windows Server 2003 family
See Also
DataGrid Class | DataGrid Members | System.Web.UI.WebControls Namespace | DataGridItem
Show: