Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
how can I change a column header text at runtime?

What methods do i use to change the text of a column header at runtime.

I looked in intializelayouts but the header property is read only.


So, when the grid loads, I want to change the name, not key, of a column header.


  • 467930
    Verified Answer
    Offline posted

    The Header is an object, not a string. You need to use the Caption property of the Header.  

     e.Layout.Bands[0].Columns[0].Header.Caption = "My Column Header";