set default value for asp.net datagrid field in edit mode (c#)
Posted on 2014-10-13
I have a simple c# asp.net datagrid being populated from a SQL table.
I have a a template field that displays a date value from the database.
When the user clicks the edit button, the date field goes in to edit mode as expected.
What I am trying to figure out is how to default the date field to current date if the underlying data field is null.
I can't seem to figure out the correct event to watch.