Hi,
I have an ascx file with a gridview, and I need to change the header text of the gridview's column in the code-behind. Something like that:
foreach (DataControlFie ld col in GridView1.Colum ns)
{
col.HeaderText = GetString(col.H eaderText);
}
However, no matter where I place that code, the header texts return to their original value, and that's what's being displayed.
What could be the reason for that? And how can it be solved?
I have an ascx file with a gridview, and I need to change the header text of the gridview's column in the code-behind. Something like that:
foreach (DataControlFie ld col in GridView1.Colum ns)
{
col.HeaderText = GetString(col.H eaderText);
}
However, no matter where I place that code, the header texts return to their original value, and that's what's being displayed.
What could be the reason for that? And how can it be solved?
Comment