Hi, I am using an ASP GridView
. I declare one label in HeaderTemplate
for setting heading of a particular column. How can I dynamically change the header text on a particular button click?
If I understood right, this is what you need,
protected void Button1_Click(object sender, EventArgs e)
{
this.gvw1.Columns[0].HeaderText = "The new header";
}
Hope that helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With