i use this method to fill data grid
public void fill()
public void fill()
{
SqlConnection con = new SqlConnection(connStr);
con.Open();
SqlDataAdapter da = new SqlDataAdapter("Select * from Dept_Master", con);
DataSet ds = new DataSet();
da.Fill(table);
}
public void BindDG()
{
GridView1.DataSource = table;
GridView1.DataBind();
}
public void Nrow()
{
table.Rows.InsertAt(table.NewRow(), 0);
}
hi...
i am new in asp.net i want to change column name at run time
to fill data grid i use Data Adapter plz tell me solution