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
595
Problem with masked input in UltraGrid
posted

I'm really sorry if my problem was discussed already. But i did not found an answer.

I have ultragrid which is bound to DataTable. One of the columns should support masked input, this datacolunm is type of string.

Entered data should have format "aaaaa/aa.aaaa", where 'a' is alphanumeric.

Here is short code example.

 column.EditorComponent = new UltraMaskedEdit()
                                                 {
                                                     InputMask = "aaaaa\\/aa\\.aaaa",
                                                     DisplayMode = MaskMode.IncludeBoth,
                                                     ClipMode = MaskMode.IncludeBoth
                                                 };

When the cell is in edit mode mask is shown. When the cell is not active - data are shown without mask. I've tried to set column.Format to "aaaaa\\/aa\\.aaaa", but unsuccessful.

If I do not set EditorComponent, but use column.MaskInput instead, then data from cell are stored with mask into DataTable. 

Setting column.MaskDataMode to MaskMode.Raw has np effect.

Please help me to show my data with mask :)

Parents Reply Children
No Data