Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Newbie: No defaults saving data using datagrid
Message
From
20/08/2008 11:09:55
Ed Milner
National Care Connection
Colorado, United States
 
 
To
19/08/2008 16:22:42
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Environment versions
Environment:
C# 2.0
OS:
Vista
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01340081
Message ID:
01340385
Views:
9
I got clarification from Kevin on this.

The problem is that the .NET GridView completely bypasses the business object when you use the feature that automatically adds a new row. It goes behind the scenes and adds a new row to the associated DataTable, so the business object is not notified and the new values can’t be added. I recommend adding a New button to the form (mmButtonNew) that adds a new entity to the business object instead—then all your default value behavior kicks in.


Thanks everyone.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform