GridViewSelectEventArgs(Int32) 建構函式

定義

初始化 GridViewSelectEventArgs 類別的新執行個體。Initializes a new instance of the GridViewSelectEventArgs class.

public:
 GridViewSelectEventArgs(int newSelectedIndex);
public GridViewSelectEventArgs (int newSelectedIndex);
new System.Web.UI.WebControls.GridViewSelectEventArgs : int -> System.Web.UI.WebControls.GridViewSelectEventArgs
Public Sub New (newSelectedIndex As Integer)

參數

newSelectedIndex
Int32

要在 GridView 控制項中選取之新資料列的索引。The index of the new row to select in the GridView control.

備註

您可以使用這個函式來初始化類別的新實例 GridViewSelectEventArgsUse this constructor to initialize a new instance of the GridViewSelectEventArgs class.

下表顯示實例的初始屬性值 GridViewSelectEventArgsThe following table shows the initial property value for an instance of GridViewSelectEventArgs.

屬性Property 初始值Initial value
NewSelectedIndex newSelectedIndex 參數的值。The value of the newSelectedIndex parameter.

注意

在引發事件時,主要由控制項開發人員使用。This constructor is used primarily by control developers when raising events.

適用於

另請參閱