Information générale
Catégorie:
The Mere Mortals .NET Framework
Titre:
Newbie: No defaults saving data using datagrid
Versions des environnements
Network:
Windows 2003 Server
While evaluating MM .Net, I'm stumped working through a small web app. Can't get a new row inserted into table. I'm adding the new row to a datagrid seemingly OK. The insert fails because two required fields are not getting the default values. When the row is added to the datagrid, these two columns are blank. Stepping through the code confirms the default values (passed as parameters) are being assigned to the correct elements in 'public xxxxxDefaults()'.
My NewRow statement is:
// Add a new row to the DataSet
this.oEditor.NewRow(new TblEditorDefaults(DateTime.MinValue, 1, DateTime.MinValue, 1));
And I've tried this:
//this.oEditor.NewRow(dsEditor, this.oEditor.TableName, new TblEditorDefaults(DateTime.MinValue, 1, DateTime.MinValue, 1));
Any help would be appreciated.
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement