C1TrueDBGrid Different colours per column header

Posted by: SHanau on 14 January 2023, 1:25 am EST

    • Post Options:
    • Link

    Posted 14 January 2023, 1:25 am EST

    Hi There,

    Is it possible to assign indiviual fore-/backcolours to every single column header of C1TrueDBGrid?

    Thanks in advance,


  • Posted 15 January 2023, 2:12 pm EST

    Hello Stephen,

    You can use the HeadingStyle property of the individual display column to set the BackColor, forecolor, and other style elements.

    c1TrueDBGrid1.Splits[0].DisplayColumns[columnIndex].HeadingStyle.BackColor = Color.Red;
    c1TrueDBGrid1.Splits[0].DisplayColumns[columnIndex].HeadingStyle.ForeColor = Color.WhiteSmoke;

    If you need any other help, please feel free to ask.


    Prabhat Sharma.

  • Posted 20 January 2023, 2:49 am EST

    Of course!

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels