Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Cannot Add a New Row
Message
 
À
16/09/2005 08:46:51
Patty Solomon
Central Susquehanna Intermediate Unit
Milton, Pennsylvanie, États-Unis
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
Database:
MS SQL Server
Divers
Thread ID:
01049588
Message ID:
01050786
Vues:
19
Patty,

>The biz object is now registered once. The new row is displayed in the form, but when the Save button is pressed, the data that has been entered never makes it to the dataset for saving. If I walk thru the HookPreSave code, the datarow contains the original default values that were set when the row was added. This implies a breakdown with binding, right?
>
>Any ideas on where I should look next?

When you say the new row is displayed in the form, is it displayed in a DataGrid or in a set of user interface controls such as text boxes, etc? If the new row is displayed in the form, that means it has been data bound. There is automatic two-way data binding in Windows Forms so the values entered in the UI should automatically be bound back to the DataRow...

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