NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

DataGrid.SelectedIndex

The index of the currently selected item. If no item is selected, its value is-1.

[Visual Basic]
Overridable Public Property SelectedIndex As Integer
[C#]
public int SelectedIndex {virtual get; virtual set;}
[C++]
public: __property virtual int get_SelectedIndex();
public: __property virtual void set_SelectedIndex(int);
[JScript]
public function get SelectedIndex() : int;
public function set SelectedIndex(int);

See Also

DataGrid Class | DataGrid Members | System.Web.UI.WebControls Namespace