Handle EditValueChanging Of WinForms/DevExpress Control

PHOTO EMBED

Mon Aug 22 2022 12:32:40 GMT+0000 (UTC)

Saved by @HristoT #c#

private void FromHospitalID_EditValueChanging(object sender, DevExpress.XtraEditors.Controls.ChangingEventArgs e)
{
    // Get the selected row if needed 
    var mod = FromHospitalID.GetSelectedDataRow() as HospitalCM;
    if (mod == null)
        return;
  
    // Cancel the action
    if (/*Something*/)
   {
       e.Cancel = true;
       return;
   }
}
content_copyCOPY