Hi, I am using ASP GridView . I declare a single label in the HeaderTemplate to set the header of a specific column. How can I dynamically change the title text on a specific button?
GridView
HeaderTemplate
If I understood correctly, this is what you need,
protected void Button1_Click(object sender, EventArgs e) { this.gvw1.Columns[0].HeaderText = "The new header"; }
Hope this helps.
I think that it will not change to a specific button click, you can only change it by writing the required code in the RowDataBound gridview event
Source: https://habr.com/ru/post/1337918/More articles:Internet image processing - image-processingRegister FS in Win32 - filesystemsHow to dynamically load another processing instance - javascriptWhere are the tests in Qt? - qtjquery how to scroll the selected option into visible view? - jquerywhere should instance methods be written in the class hierarchy? - pythonHow to remote debugging with RubyMine? - ruby-on-railsHow to force file upload on IIS 6.0 server - c #How to set up a container unit to create scoffed / real log instances - c #HttpHandler and XML Files - httpAll Articles