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
3338
how can I change a column header text at runtime?
posted

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.

How?

Parents
No Data
Reply
  • 467470
    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";

Children
No Data