I have to implement some basic validations to our application. The challenge is, that I cannot use a strongly-typed dataset, because our application should be customizable with metadata.
I need to validate min- and maxValue, min- and maxLength and isRequired on any column.
Here are some other restrictions I have to accomplish:
I'd be happy, if you give me some ideas on how to manage this. (you should do my work - just give me some thoughts)
My idea is to get all the validation functionality "deep down" in the datalayer.
Can you give me some ideas, how you have solved a problem like this?
Thanks in advance!
Regards, Florian
Hi Florian,
There are any number of ways you could do this. But it seems to me that this would be a good case to use the UltraWinValidator component. This is a new component that was just released in v8.1 or v8.2 (I forget which). The validator allows you to create validation rules for controls or grid columns and you could define the rules at run-time based on your metadata.
Check out the WinValidator samples included with NetAdvantage to see if it will meet your needs.