Date Compare Validation Inside a Data Grid
-
Hello i m using a datagird and when edit mode i want to compare the two date but it dont work the code inside edit item template is: Operator="LessThanEqual" Type="Date" ErrorMessage="*Required" Display="Dynamic" EnableClientScript="true">
'does not work' are three little words that can mean so much. How does it not work ? What makes you think the compare validator knows how to compare two dates ? I would assume it's going to do a string compare, which means it will compare the two first characters, and only move on if they are the same, is that what's happening ? I doubt it can do date compares, although I know there's a property to tell it what sort of comparison to do. I suspect you need to write your own JS to do this.
Christian Graus Driven to the arms of OSX by Vista.