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
685
Table constraints not enforced in wingrid....
posted

 

On a simple grid  on a form  column rules like 'not null'  are enforced   e.g. an 'not null' message shows when you move off the row 

When it is a 3 hierarchy grid - it does not.   Why?   (Doesn't matter - is not the question i seek)

NB this is a column rule.  As opposed to a Table Constraint, or Index Constraint (unique) - which are not enforced in the Grid and only appear when the user Saves.

It seems that DataTable can have constraints added to it - so it appears necessary to recreate all table constraints in .NET.

Can someone simply confirm that wingrid does not deal with index constraints, please ? 

If a column rule does show up perhaps I am missing some setting that allows other constraints to kick in........ ?

 

 

Parents
  • 469350
    Verified Answer
    Offline posted

    The WinGrid does not really deal with the DataTable directly. It only deals with the IBindingList interface and the BindingManager. If the grid tries to update the data source and it fails for any reason, then the grid should recieve a notification of the error, or maybe an exception. In which case, the grid will respond by firing the CellDataError and/or the Error event and show an error message to the user. 

    There is no difference when the grid has a single table or a hierarchical relationship. 

Reply Children
No Data