DataGrid.UnloadingRow 이벤트

정의

DataGridRow 개체를 재사용할 수 있을 때 발생합니다.

public:
 event EventHandler<System::Windows::Controls::DataGridRowEventArgs ^> ^ UnloadingRow;
public event EventHandler<System.Windows.Controls.DataGridRowEventArgs> UnloadingRow;
member this.UnloadingRow : EventHandler<System.Windows.Controls.DataGridRowEventArgs> 
Public Custom Event UnloadingRow As EventHandler(Of DataGridRowEventArgs) 
Public Event UnloadingRow As EventHandler(Of DataGridRowEventArgs) 

이벤트 유형

설명

성능을 향상시키기 위해 속성은 EnableRowVirtualization 기본적으로 로 true 설정됩니다. 경우는 EnableRowVirtualization 속성으로 설정 true된 , 바인딩 DataGrid 된 데이터 원본의 각 데이터 항목에 대 한 DataGridRow 개체를 인스턴스화 하지 않습니다. 대신 은 DataGrid 필요한 경우에만 개체를 만들고 DataGridRow 가능한 한 많이 다시 사용합니다. 예를 들어 는 DataGrid 현재 보기에 있는 각 데이터 항목에 대해 개체를 만들고 DataGridRow 보기 밖으로 스크롤할 때 행을 재활용합니다.

이 이벤트를 사용하면 다시 사용되기 전에 행을 변경해야 합니다. 일반적으로 이 이벤트를 사용하여 이벤트 처리기에서 LoadingRow 변경한 내용을 실행 취소합니다.

적용 대상

추가 정보