1 Reply Latest reply on May 11, 2007 11:19 AM by kad7715

    Validating user input in a datagrid column

      Hi ,

      I have 2 datagrid columns for users to enter data. I want to restrict them only to enter numbers. I tried NumberValidator , that
      does not work. Please help !! I am a newbee..

      Thanks in advance..
        • 1. Re: Validating user input in a datagrid column
          We created an itemEditor for our dataColumn that was a mx:TextInput. Then we used the textInput event to capture keys as they are typed. You get a TextEvent from that which you can cancel if it something you don't want the user entering. We used regexs for are validation here. I'm not sure if this is the best way to handle this sort of thing, but it worked.