I want to Compare 2 columns in a a RadGridView to set the style of the cell. I saw the example where you are comparing to a static value, but is there a way to compare it to another column. Basically I want to see if 2 columns are equal. If not, make the font bold and red.
Worked great. The only issue that I had was if I defined a background color in GridViewDataColumn it would not override it
Also, what I was not crazy about is creating a class for each column I needed to have a conditional style. I had 5 columns that I needed some conditional style for. Is there a way to iterate through the rows and change the style
0
Maya
Telerik team
answered on 22 Apr 2011, 10:18 AM
Hi John Giblin,
May you provide a bit more details about the scenario you want to accomplish ? Why do you want to define a Background for the whole column - may you try to set this background property in the styles for the CellStyleSelector ?
As for you second requirement, do you want to achieve something like style selector for each separate column ? Is it not appropriate to use a RowStyleSelector ? Considering the iteration through rows, it would be better to use the Items collection of the grid, instead of working with the UI elements.
Greetings,
Maya
the Telerik team
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Public Issue Tracking
system and vote to affect the priority of the items