GridView.IDataBoundListControl.SelectedIndex 屬性

定義

取得或設定資料繫結控制項中所選取資料列的索引。

property int System::Web::UI::WebControls::IDataBoundListControl::SelectedIndex { int get(); void set(int value); };
int System.Web.UI.WebControls.IDataBoundListControl.SelectedIndex { get; set; }
member this.System.Web.UI.WebControls.IDataBoundListControl.SelectedIndex : int with get, set
 Property SelectedIndex As Integer Implements IDataBoundListControl.SelectedIndex

屬性值

Int32

資料繫結控制項中所選取資料列的索引。

實作

備註

這個成員是明確介面成員實作, 只有在 GridView 執行個體轉換成 IDataBoundListControl 介面時,才能使用這個成員。

ASP.NET Dynamic Data 支援此屬性。

適用於