I have a GridView which I programmatically bind using a a SqlDataAdapter DataSet.
adapter.Fill(ds);
testGV.DataSource = ds;
testGV.DataBind();
The problem is that the columns get their header texts directly from the database, which can look odd when presented on websites.
I would like to modify the column header text programmatically. I have already tried the following,
testGV.Columns[0].HeaderText = "Date";
and
this.testGV.Columns[0].HeaderText = "Date";
but they do not seem to give me the correct result.