Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
155
Questions and oppinions about data-validation and its representation in the GUI
posted

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:

  • an update to the database must be performed after the row is changed
  • when the row has errors, no update should be performed
  • the bindingNavigator should behave based on the grid-state (with added accept- and decline-buttons)

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

 

  • 469350
    Verified Answer
    Offline posted

    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.