Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problem with New button
Message
De
21/07/2008 19:08:38
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
 
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Versions des environnements
Environment:
C# 2.0
OS:
Windows Server 2003
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01332870
Message ID:
01332984
Vues:
3
Linda,

>Thanks for hanging with me. I added that line of code but I'm still not having any luck. Part of the problem seems to be when I use the base.OnClick line, it references the click method of the form, not the button. I can't seem to figure out how to get to the mmButton base object.
>
>When I check the bizobject.State it shows "Added" but the values for the previous entry are still there. Should I be doing this a different way? I really want something like the HookPostAddNewRow but I want to access it from the form rather than the business object because I need to enable the controls on the form.
>
>Any ideas? Thanks.
>

Here are a couple more questions. Is this form a mm Maintenance form?
I am curious to know if the record is being added in the right datatable and if the values you are changing are being set. Maybe you are just not positioned on the new row.

Check out the dev guide section "Using Specialized Buttons" under "Creating Windows Forms Applications". There is a section in there about positioning to the new row after it is added. For some reason if your record is added but it is not positioned to that new row, maybe this would do the trick.
Tim
Timothy Bryan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform