DataSet ds1 = new DataSet(); DataTable dt = new DataTable("Emp"); dt.Columns.Add("Name",typeof(string)); dt.Columns.Add("Address",typeof(string)); dt.Columns.Add("Phone", typeof(string)); DataRow dr = dt.NewRow(); dr["Name"] = "Sandeep Aparajit"; dr["Address"] = "Redmond USA"; dr["Phone"] = "425-000-0000"; dt.Rows.Add(dr); ds1.Tables.Add(dt); dataGridView2.DataSource = ds1.Tables[0];
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)