Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmPicker - trouble with BrokenRule/ErrorProvider
Message
 
À
09/03/2005 09:52:25
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 1.1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
00992974
Message ID:
00994293
Vues:
18
Lori,

>I'm having a similiar problem, possibly someone could help me out with. I have an mmUltraDataTimeEditor on my form. I bind it with the following code:
>this.txtsd_dob.DataBindings.Add("Text",dsStudentInfo,"ST_STDNT.sd_dob");
>
>In the bizobject for table ST_STDNT, I add a rule: this.AddRequiredField("sd_dob");
>However, when I break this rule by leaving the field blank, I do not receive an error broken warning/icon.
>
>I also have another mmUltraDateTimeEditor on my form. I set up a rule in the CheckRulesHook method. When I break the rule set up for this field, I receive the error warning, but alas no icon.

Hmmm...I just checked this out and it seems to work fine. I tried using both MM . NET data binding and the manual data binding method you showed here and they both seem to work. It could be an issue of specifying the databinding. In Windows Forms, the error icons are displayed automatically using the standard .NET error provider mechanism which is looking for an exact match in how you specify your error provider broken rule and the way you data bind the control. You may want to try databinding a bit differently to see if that helps. For example:
this.txtsd_dob.DataBindings.Add("Text",dsStudentInfo.Tables["ST_STDNT"],"sd_dob");
Regards,
Kevin McNeish
Eight-Time .NET MVP
VFP and iOS Author, Speaker & Trainer
Oak Leaf Enterprises, Inc.
Chief Architect, MM Framework
http://www.oakleafsd.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform