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
1640
how to prevent mask input error warning in wingrid?
posted

I use a UltraMasedEdit ultraMaskEdit1 as the EditorComponent of a column. It seems there's no way for me to prevent the warning messagebox when the row is updating with an illeagal input string in the column according to the InputMask of ultraMaskEdit1. Is there?

Parents
No Data
Reply
  • 71886
    Verified Answer
    Offline posted

    Hello,

    You could try using a code like the following in order to achieve the desired behavior:

            private void ultraGrid1_CellDataError(object sender, Infragistics.Win.UltraWinGrid.CellDataErrorEventArgs e)
            {
                e.RaiseErrorEvent = false;
                e.StayInEditMode = false;
            }
    

     Please do not hesitate to contact us if you need any additional assistance.

Children