Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
1855
e.Record.CancelUpdate(); functionality question
posted

i am using the following code to validate a field in a row, in a xamdatagrid. when it shows my message and i click ok it removes all data from the row. I do not want the other entered data to be cleared because a required field was not entered, i want the user to go fix this one field and submit all data.

 

 

 if (string.IsNullOrEmpty(patient.ID))
            {
                var message = new AcknowledgeDialogBox(SmartLinkStrings.MsgPatientID, null);
                message.ShowDialog();
                e.Record.CancelUpdate();
            }

Parents
No Data
Reply Children
No Data