コード例 #1
0
 private void DGvTransView_CellValueChanged(object sender, DevExpress.XtraGrid.Views.Base.CellValueChangedEventArgs e)
 {
     if (DGvTransView.GetRowCellValue(DGvTransView.FocusedRowHandle, "NatureComplaint").ToString() != string.Empty)
     {
         System.Data.DataRow dr = DGvTransView.GetDataRow(DGvTransView.FocusedRowHandle); //("Total");
         if (DGvTransView.GetFocusedRowCellValue("ComplaintId") == DBNull.Value)
         {
             if (CommFun.CheckData("Nature_Complaint", "NatureComplaint", DGvTransView.GetFocusedRowCellValue("NatureComplaint").ToString(), "Nature Of Complaint") == false)
             {
                 dr["NatureComplaint"]       = string.Empty;
                 DGvTransView.NewItemRowText = string.Empty;
                 DGvTransView.DeleteRow(DGvTransView.FocusedRowHandle);
             }
         }
     }
 }