Versions des environnements
Network:
Windows 2003 Server
>Does anyone know the correct syntax to place a default date value (System.DateTime.Today) in a typed dataset's DefaultValue property??
Unfortunately column default attributes only accept a constant. To get around this you can leave the datetime column out of the schema and let the database handle the default value (and remove it from the DataAdapter's SqlCommands), or you can hook into the DataTable.RowChanged event.
There might be some way to do it in a WinForms application if you are using the DataBindingManager. If this is the case, maybe someone else will post the answer.
Précédent
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