Home Forums WinForms controls Xceed Grid for WinForms TextEditor Mask problem

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #17404 |

    Hello,

    I have a column in my grid (string type)  and I want the user to be able to enter only digits (maxim 2 digits ) OR the “*” sign. I can’t figure out how can I use the Mask property of the TextEditor cell editor manager. I also tried to use a custom cell editor manager derived from TextEditor and to override the “IsInputCharCore” method to filter the allowed characters but it seems that this method  is never called when I type in the cell.

    Can you please give me an advise?

     

    Thanks,

    Bogdan

     

    Imported from legacy forums. Posted by bogdip (had 906 views)

    Xceed Support
    Member
    Post count: 5658

    Hi Bogdip,

     

    The TextEditor was not designed to be very flexible with respect to the Mask functionality. The only workaround we can suggest is to implement your own control by deriving from the TextBox class and then implement your own Mask.

    Imported from legacy forums. Posted by Mohamed [Xceed] (had 949 views)

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.