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,
Stephan
Forums Home / ComponentOne / General Discussion
Posted by: SHanau on 14 January 2023, 1:25 am EST
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,
Stephan
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.
Regards,
Prabhat Sharma.
Posted 20 January 2023, 2:49 am EST
Of course!