DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn("NewColumnName", typeof(DateTime))); dt.Rows.Add(DateTime.Now); dataGridView1.DataSource = dt;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)