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.
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.
The following output is displayed as a result of the above code example.
Figure: Grid column with updated header text
This page will automatically be redirected to the sign-in page in 10 seconds.