본문 바로가기
MES 문의 : 010-8015-0400
IT개발/개발 일반

Devexpress GridView cell old value, new value 체크하기

by all it 2024. 11. 25.
반응형

ValidatingEditor 이벤트를 이용한다.

private void GridView1_ValidatingEditor(object sender, DevExpress.XtraEditors.Controls.BaseContainerValidateEditorEventArgs e) {  
    GridColumn col = (e as EditFormValidateEditorEventArgs).Column;  
    object oldValue = gridView1.GetFocusedRowCellValue(col);  
    object newValue = e.Value;  
}
Private Sub GridView1_ValidatingEditor(ByVal sender As Object, ByVal e As DevExpress.XtraEditors.Controls.BaseContainerValidateEditorEventArgs)  
    Dim col As GridColumn = (TryCast(e, EditFormValidateEditorEventArgs)).Column  
    Dim oldValue As Object = gridView1.GetFocusedRowCellValue(col)  
    Dim newValue As Object = e.Value  
End Sub

 

반응형

댓글