This is a migrated thread and some comments may be shown as answers.

Programmatically set column foreground color?

1 Answer 99 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Gone2TheDogs
Top achievements
Rank 1
Iron
Veteran
Gone2TheDogs asked on 31 Oct 2016, 06:59 PM

I need to set Column(0) foreground color programmatically. I can't find any examples specifically for this. Would someone please share an example or where I can find how its done?

Thanks!

 

 

 

 

1 Answer, 1 is accepted

Sort by
0
Dimitar
Telerik team
answered on 01 Nov 2016, 08:49 AM
Hi Bob,

Thank you for writing.

Due to the UI virtualization, you should use the formatting events to change the styles. The first example in the following article shows how you can set the ForeColor:  Formatting Cells.

Should you have any other questions do not hesitate to ask.

Regards,
Dimitar
Telerik by Progress
Check out the Windows Forms project converter, which aids the conversion process from standard Windows Forms applications written in C# or VB to Telerik UI for WinForms.For more information check out this blog post and share your thoughts.
Tags
GridView
Asked by
Gone2TheDogs
Top achievements
Rank 1
Iron
Veteran
Answers by
Dimitar
Telerik team
Share this question
or