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

Bug: Setting background color of grid column not working well

2 Answers 60 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Jorge Gonzalez
Top achievements
Rank 1
Jorge Gonzalez asked on 14 Jan 2010, 05:52 PM
Hello,
     I set the background color of a grid column to red but it did not appear to work. When I scrolled down the cells began to appear read. When I scrolled back up to the top the cells that did not have a red background now had a red background.
Note. I have virtualizing turned on.

I switched off virtualizing  and the command to change the background of the column red did not work at all. Here's the command:

gridname.Columns[<column to turn red>].Background = Brushes.Red;

Any help would be appreciated.

Thanks

2 Answers, 1 is accepted

Sort by
0
Jorge Gonzalez
Top achievements
Rank 1
answered on 17 Jan 2010, 03:05 AM
Hello,
   As a work around instead of setting all the cells in the column to red I set the column header cell to red to indicate that the column has been selected.
0
Pavel Pavlov
Telerik team
answered on 19 Jan 2010, 10:37 AM
Hello Jorge Gonzalez,

This is a bug and will be scheduled for a fix immediately . Please excuse us for the inconvenience caused.
Meanwhile to force refresh the cells background you may call the RadGridView.Rebind() method after setting the background color.
Thanks for reporting the bug ! I have updated your Telerik points.

Kind regards,
Pavel Pavlov
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
GridView
Asked by
Jorge Gonzalez
Top achievements
Rank 1
Answers by
Jorge Gonzalez
Top achievements
Rank 1
Pavel Pavlov
Telerik team
Share this question
or