I have DataTable
with date column. I would like to know how to set default value of the column to current date without using loop.
I have check below code, but I would like to know what is "Value" in below code
var col = result.Columns.Add("Column1", typeof(CellObject));
col.DefaultValue = new CellObject { Value = null };
Updated Code2 :-
var col = ds1.Tables[0].Columns.Add("LastUpdatedDateTime", typeof(DateTime));
col.DefaultValue = DateTime.Today;