Gets or sets the index of the selected row.

Namespace:  C1.Web.UI.Controls.C1GridView
Assembly:  C1.Web.UI.Controls.2 (in C1.Web.UI.Controls.2.dll)

Syntax

C#
[DefaultValueAttribute()]
[BindableAttribute(true)]
[JsonAttribute(true, true, )]
public virtual int SelectedIndex { get; set; }
Visual Basic
<DefaultValueAttribute()> _
<BindableAttribute(True)> _
<JsonAttribute(True, True, )> _
Public Overridable Property SelectedIndex As Integer
	Get
	Set

Field Value

The default value is -1. Set this property to -1 to deselect an item in the C1GridView component.

See Also