DataGrid.UnSelect(Int32) 메서드

정의

지정된 행을 선택 취소합니다.

public:
 void UnSelect(int row);
public void UnSelect (int row);
member this.UnSelect : int -> unit
Public Sub UnSelect (row As Integer)

매개 변수

row
Int32

선택 취소할 행의 인덱스입니다.

예제

다음 코드 예제에서는이 멤버를 사용 하는 방법을 보여 줍니다.

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

// On Click of Button "Unselect Row" this event is raised.
private void UnselectRow_Clicked(object sender, EventArgs e)
{
   // Unselect the current row from the Datagrid
   myDataGrid.UnSelect(myDataGrid.CurrentRowIndex);
}
' On Click of Button "Unselect Row" this event is raised.
 Private Sub UnselectRow_Clicked(ByVal sender As Object, ByVal e As EventArgs)
     ' Unselect the current row from the Datagrid
     myDataGrid.UnSelect(myDataGrid.CurrentRowIndex)
 End Sub

설명

이 메서드를 IsSelected, Select및 메서드와 ResetSelection 함께 사용하여 특정 행의 선택 상태를 조작합니다.

적용 대상