Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
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 Go to previous messageGo to previous message
unodgs is currently offline  unodgs
Messages: 1367
Registered: November 2005
Location: Poland
Ultimate Contributor

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".
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: DropList multiple selection
Next Topic: Hide arrayctrl column?
Goto Forum:
  


Current Time: Tue Jul 15 09:41:04 CEST 2025

Total time taken to generate the page: 0.03320 seconds