i am using DataGrid control. i bind it with the ADO.NET.
i want if any new data comes it should append it with the old data column wise in grid view. how this can be done?
DataTable dt = new DataTable();
SqlConnection con = new SqlConnection();
con.ConnectionString = "server = (local); initial Catalog = SQLTraining; Integrated Security = SSPI";
con.Open();
string Selectstring = "select "+attribute_name+" from "+tablename+"";
SqlCommand cmd = new SqlCommand(Selectstring, con);
SqlDataAdapter da = new SqlDataAdapter(cmd);
da.Fill(dt);
gd.DataSource = dt;
gd.DataBind();