DataGrid.OnPreparingCellForEdit(DataGridPreparingCellForEditEventArgs) 메서드
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
PreparingCellForEdit 이벤트를 발생시킵니다.
protected public:
virtual void OnPreparingCellForEdit(System::Windows::Controls::DataGridPreparingCellForEditEventArgs ^ e);
protected internal virtual void OnPreparingCellForEdit (System.Windows.Controls.DataGridPreparingCellForEditEventArgs e);
abstract member OnPreparingCellForEdit : System.Windows.Controls.DataGridPreparingCellForEditEventArgs -> unit
override this.OnPreparingCellForEdit : System.Windows.Controls.DataGridPreparingCellForEditEventArgs -> unit
Protected Friend Overridable Sub OnPreparingCellForEdit (e As DataGridPreparingCellForEditEventArgs)
매개 변수
이벤트 데이터입니다.
설명
이 메서드를 사용하면 파생 클래스가 편집 모드로 전환되기 전에 셀의 내용을 수정할 수 있습니다. 이 메서드는 편집 모드에 들어갔을 때 (대신DataGrid)에서 DataGridCell 호출됩니다.
이벤트가 발생하면 대리자를 통해 이벤트 처리기가 호출됩니다. 자세한 내용은 이벤트 처리 및 발생합니다.
또한 OnPreparingCellForEdit 메서드를 사용하면 파생 클래스가 대리자를 연결하지 않고도 이벤트를 처리할 수 있습니다. 이는 파생 클래스에서 이벤트를 처리하는 기본 방법입니다.
상속자 참고
재정의 하는 경우 OnPreparingCellForEdit(DataGridPreparingCellForEditEventArgs) 파생된 클래스에서 호출 해야 기본 클래스 OnPreparingCellForEdit(DataGridPreparingCellForEditEventArgs) 메서드 등록 된 대리자가 이벤트를 받도록 합니다.
적용 대상
.NET
피드백
https://aka.ms/ContentUserFeedback
출시 예정: 2024년 내내 콘텐츠에 대한 피드백 메커니즘으로 GitHub 문제를 단계적으로 폐지하고 이를 새로운 피드백 시스템으로 바꿀 예정입니다. 자세한 내용은 다음을 참조하세요.다음에 대한 사용자 의견 제출 및 보기