I have an UltraGridCell set up to receive a Boolean value.
Based on the Boolean value, I'd like to set the state of another UltraGridCell to be a required - or not.
That's to say, I'd like to set the Required attribute of an UltraGridCell conditionally.
I believe I'm using an older version of the software, a base DLL is marked as:
Thank you.
Hello Bill,
I have been investigating into your requirement and in order to achieve this I would recommend using the DataErrorInfo feature of the UltraGrid, not to be confused with the IDataErrorInfo interface, although that may be an option for you as well. This feature allows you to set “column errors” for specific rows, essentially allowing you to set cell-specific error validation. You can read about utilizing this feature here.
I hope this helps you. Please let me know if you have any other questions or concerns on this matter.
It looked like it was working, but it still allows rows to be pushed to the backend for update. I also tried to set a RowError, in addition to the cell(column) error, in hopes of preventing the update, but that didn't work.