Validate DataGridColumn cell's individually

Posted by Joshua Fox on Stack Overflow See other posts from Stack Overflow or by Joshua Fox
Published on 2010-06-18T16:16:08Z Indexed on 2010/06/18 16:23 UTC
Read the original article Hit count: 302

Filed under:
|
|
|

How can I validate the cells in a DataGridColumn individually? The validation is configured per-row. For example

FIELD               VALUE   TYPE
age                 13      Integer
height              13x3    Integer
registered          true    Boolean
temperature         98.G6   Float

In this case, of course 13x3 and 98.G6 would be invalid.

mockup

Writing a Validator is no problem, and I can grab the TYPE from the data provider object, but now do I get individual access to the GUI cells so I can give the Validator a source which is an individual cell, set the errorString on an individual cell.

© Stack Overflow or respective owner

Related posts about flex

Related posts about actionscript-3