Hi,
When I select a row by clicking the row header, the selected row will be in blue color.
Can I give any other color to the row it is selected.
regards,
pgr2007
Please refer the link for the solution,
http://forums.infragistics.com/forums/p/13001/56478.aspx#56478
Thanks Mike Saltzman and Vince McDonald for the help
There are lots of DrawFilter samples in the Infragistics Knowledge Base and here on the forums.
Basically, you need to determine which element is drawing the BackColor. It's probably the CellUIElement or the EmbeddableUIElementBase (or some derived class). I recommend that you try the Infragistics UIElementViewer Utility. This will help you identify the element you need.
Once you find the correct element, it's pretty straightforward. You would use the BeforeDrawBackground phase of the DrawFilter. Get the cell from the element using the GetContext method - there are lots of sample DrawFilters that do this. Once you have the cell, you can get the Row and check whether the row is Active and Selected and if so, set the appearanceData.BackColor to whatever color you want.
Could you please share some sample code of DrawFilter?
There's no property to distinguish a row that is both active and selected by color. The ActiveRowAppearance takes precedence since it's the more specific appearance. The ActiveRow shows an image in the RowSelector, though.
You could acheive what you want using a DrawFilter, though.
Thanks for the reply.
The last sentence in your reply is my problem. I have to distingush the row selected if it is both active and selected.
The difference in row selector is not easily distinguished, so is there any method to change the color of row selector if it is selected.