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: Mon Feb 02 17:36:51 CET 2026
Total time taken to generate the page: 0.11963 seconds
|