We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

How to update headerText for rendered grid?

We can update the header text of a grid columns after rendering the grid by using external button. In the click event of Button, using columns method of grid we can add new column into grid or modified already existing column in the grid. The following code example shows how to update the headerText of the column in Grid.

  1. Render the Grid control.

JS

MVC

ASP.NET

2. In the button click event, we can get the corresponding column that we are going to change the header text by using getColumnByHeaderText method of Grid. Then the updated column object is passed to the columns method of the grid in order to refresh the grid header.

JS

 

The following output is displayed as a result of the above code example.

Figure: Grid column with updated header text

 

 

 

 

 

 

                           

 

 

 

Article ID: Published Date: Last Revised Date: Platform: Control:
7762 06/13/2017 06/13/2017 JavaScript ejGrid
Did you find this information helpful?
Add Comment
You must log in to leave a comment

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon