How to change Column's HeaderText in button click event function?

Oct 31, 2010 at 1:53 PM

I need to change Grid's column header text in an button click function.

I tried following line:

Grid1.FindColumn(columnId).HeaderText = "xyz";

But it has no effect.

 

Could anybody help me?