Hi,
I would like that when I select a row in my application that the color of the row doesn't change. It the row was red, then it's stay red, if it was blue, then it's stay blue.
I try :
grid.DisplayLayout.Bands[0].Override.ActiveRowAppearance.BackColor = Color.Empty;grid.DisplayLayout.Bands[0].Override.ActiveRowAppearance.BackColor2 = Color.Empty;
but it's doesn't work.
thx
Hi Mike,
I must have been having a brainstorm yesterday. It's working now, whether I set the colour statically in the designer or in InitializeRow. Thanks for your help, and I'm sorry I wasted your time.
Paul
Hi Paul,
I've tested this sample code and I know it works, so if it's not working for you, something must be different about your code.
Is aCell.Row.CellAppearance.BackColor actually set to anything? Try replacing that with a concete color like Color.Red and see if that works.
I've tried this and can't get it to work. The DrawElement is setting the BackColor:
drawParams.AppearanceData.BackColor = aCell.Row.CellAppearance.BackColor
but when I select the whole row, it still gets the default background colour. What I want to do is to select a row and have the row's background colour change to a specified colour except for the cells where I've set a specific colour already.
DrawFilter for Backcolor - Infragistics Forums