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
135
How to set arithmetic conditions on WinGrid columns?
posted

Hello,

 

I have an UltraGrid with 3 decimal columns. Let's say columns A, B and C.

I need to assure that B > A, this is, the value on the column B is always greater than the value on column A.

 

Does UltraGrid control support this kind of conditions?

If yes, how can I set them?

Thanks in advance.

 

Best Regards,

  Pedro Rosas

Parents
No Data
Reply
  • 37774
    posted

    Pedro,

    There is not functionality built into the grid to accomplish this.  You could, however, use the BeforeExitEditMode or BeforeCellUpdate events of the grid to ensure that the user has entered a valid value; the former event would likely be your best bet if you don't want to allow the user to leave the cell until a valid value is entered.

    -Matt

Children
No Data