DataColumn set a default value
问题 I am trying to set a default value for a DataColumn. How do you set a default value for DataColumn (column3) for the below code DataTable dt = new DataTable(); dt.Columns.AddRange(new DataColumn[] { new DataColumn("Column1", typeof(String)), new DataColumn("Column2", typeof(String)), new DataColumn("Column3", typeof(String)), }); string csvData = File.ReadAllText(csvPath); foreach (string row in csvData.Split('\n')) { if (!string.IsNullOrEmpty(row)) { dt.Rows.Add(); int i = 0; foreach (string