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
170
How to make a cell as Numeric Editor
posted

Hi all,

 In my application, I have a grid with some cells disabled for editing and some cells with allow editing. I wan to make these editable cells to accept only numeric entries. There is a way to handle the key down event of grid and only accept the numeric keys. Is there some other way to do this. During my R&D I came to know a property "Editor"  of cell which accept "Infragistics.Win.EmbeddableEditorBase" object. Is this helpful in this regard and what will be the way?

 

Thanks

Habib Ahmad 

Parents
  • 469350
    Verified Answer
    Offline posted

     Hi Habib,

        If you want to mask the input of a cell, you could use an Editor, but that's the complicated way to do it. A much easier way is to set the Style property of the column. There are styles that only allow numeric values. If none of the styles suit your needs, then another way to do it would be top use the InputMask (or maybe it's MaskInput, I always get them mixed up) property of the column.

Reply Children