Hi,
I want to change the backcolor of rows of alternate merged cells (in one column). There is a property RowAlternateAppearance which can be use for this purpose but it is not changing the backcolor based on merged cells. This means - All rows of first merged cell should display with one color and all rows of next merged cells should display with another color and so on. Please let me know if there is any way to solve this problem
Thanks in advance,
Ujwal Salunkhe
Hi Mike,
I found out the solution for this.
I have added the code in the class which is inherited from IMergeCellEvaluator. Following is the code
class CustomMergedCellEvaluator : Infragistics.Win.UltraWinGrid.IMergedCellEvaluator
{
private Color m_color2 = Color.LightBlue;
value2 = row2.Cells["EmpName"].Text;
row1.Appearance.BackColor = m_color1;
}
m_color1 = m_color2;
m_color2 = tempColor;
m_gridRow1 = row1;
row2.Appearance.BackColor = m_color1;
Thanks & Regards,
Hi Ujwal,
There's no easy way to do this. You would have to somehow determine on each merged cell if it is an odd number or an even number. This is not small task and it would basically involve counting from the first row of the grid every time.