On my mxml page I have a datagrid. underneath this there are 3 button, 'Add',
'Edit' and 'Delete'. For the 'Add' button everything works perfect. When the
user clicks on the edit button, this calls my validateForm function to validate
that a user has selected a row of data from the datagrid. If they have not, it
returns an error and if they have the edit pop up window appears.

The problem I am having is when the pop up appears, the red error appears over
the datagrid again! I don't know why this is happening or where the validation
is happening again. I have tried to disable the validation on the datagrd from
with the validateForm function and from the pop up window but both of these
fail. I have included the code from my validateForm function.

Any help or suggestions are greatly appreciated

Thanks

Chris