次の方法で共有


DataGrid.UnSelect メソッド

指定した行の選択を解除します。

Public Sub UnSelect( _
   ByVal row As Integer _)
[C#]
public void UnSelect(introw);
[C++]
public: void UnSelect(introw);
[JScript]
public function UnSelect(
   row : int);

パラメータ

  • row
    選択を解除する行のインデックス。

使用例

 
' On Click of Button "Unselect Row" this event is raised.
Protected Sub UnselectRow_Clicked(sender As Object, e As EventArgs)
   ' Unselect the current row from the Datagrid
   myDataGrid.UnSelect(myDataGrid.CurrentRowIndex)
End Sub 'UnselectRow_Clicked

[C#] 

   // On Click of Button "Unselect Row" this event is raised.
   protected void UnselectRow_Clicked(object sender, EventArgs e)
   {
      // Unselect the current row from the Datagrid
      myDataGrid.UnSelect(myDataGrid.CurrentRowIndex);
   }

[C++] 
protected:
    // On Click of Button S"Unselect Row" this event is raised.
    void UnselectRow_Clicked(Object* /*sender*/, EventArgs* /*e*/) {
        // Unselect the current row from the Datagrid
        myDataGrid->UnSelect(myDataGrid->CurrentRowIndex);
    }

[JScript] JScript のサンプルはありません。Visual Basic、C#、および C++ のサンプルを表示するには、このページの左上隅にある言語のフィルタ ボタン 言語のフィルタ をクリックします。

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

DataGrid クラス | DataGrid メンバ | System.Windows.Forms 名前空間