Home » U++ Library support » ArrayCtrl, HeaderCtrl & GridCtrl » Applying NoDuplicate within GridControl
Re: Applying NoDuplicate within GridControl [message #9639 is a reply to message #9637] |
Wed, 23 May 2007 08:26   |
|
Quote: | In other words how to prevent creating or altering records with duplicate value
|
I modified HomeBudget to be able to do that. It uses GridCtrl's CancelInsert/CancelUpdate in grid callbacks if database refuse commiting new/updated record. Now it shows sql error, but you can examine a sql error code and if it is index violation you can show "Error: duplicate record".
|
|
|
Goto Forum:
Current Time: Tue Jul 15 09:41:04 CEST 2025
Total time taken to generate the page: 0.03320 seconds
|