Environment versions
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.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only