I have apply different coloring based on the cell value.
But after I select a row, in became all white by default.
Can I keep the coloring in the cell after select the row?
minqin said:The cell is not selected, the row is. So I can't change the color...
It doesn't matter. When you set the Appearance on the cell, you should set the SelectedAppearance, also. When the row is selected, the cell's SelectedAppearance will be applied.
just one more thing. the attached projects are downloaded from the infragistics website. i downloaded them like a year ago.
check the attached projects
you should implement a drawfilter for forecolor
just upgrade the attached projects and you will find it in the code
let me know if you need any further assistance
The cell is not selected, the row is. So I can't change the color...
My code will set the Cells' color based on their value:theRow.Cells[column].Appearance.ForeColor = <0 ? Red:Green;
And I trigger this process in the grid's AfterSelectChange, AfterRowActivate and InitializeRow events.But they are all not working, the color will be override after the row is selected...
there is a SelectedAppearance for the cell.
you can set the selectedAppearance to the same appearance so it will appear the same as when it is not selected.