I have a devexpress xtragrid with 40 columns.
I compare each cell value with other and if it is different then I want to change the cell background color.
I try with GridViewInfo but it only takes the columns that are visible on the screen.But I want to do for all the columns.(Not with RowCellStyle)
Do you have a solution for that?
Thank you!
C# – How to change background color of a cell in Devexpress Grid
cdevexpressgridxtragrid
Related Topic
- C# – Random number generator only generating one random number
- C# – How to hide column of devexpress XtraGrid
- C# – reason for C#’s reuse of the variable in a foreach
- C# – Try-catch speeding up the code
- C# – Error – Unable to access the IIS metabase
- Scala: list.flatten: no implicit argument matching parameter type (Any) = > Iterable[Any] was found
Best Answer
You need to handle the CustomDrawCell of your GridView, here is a snip of code that change the color of the Name column, based on an other column valoe (age column)
Good luck