Hi,
I have customize ultragrid appearance in initialize handler like this :
e.Layout.Override.RowSelectors = DefaultableBoolean.False; e.Layout.Override.SelectTypeRow = SelectType.Extended; e.Layout.Override.SelectTypeCell = SelectType.None; e.Layout.Override.SelectTypeCol = SelectType.None; e.Layout.Override.HeaderClickAction = HeaderClickAction.SortMulti; e.Layout.Override.CellClickAction = CellClickAction.RowSelect;
Some of my Ultragrid Cells are colored in a specific color that depends on a condition :
if (condition ){
gridWellResults.Rows[row.Index].Cells[4].Appearance.BackColor = RejectedColor;
}
Finally I have set the active row appearance to Color.Transparent :
grid.DisplayLayout.Override.ActiveRowAppearance.BackColor = Color.Transparent;
The problem is that active row background is become white , not transparent .
I have tried also to set transparency in a style file , the same result .
Thanks in advance,
Ovidiu
I'm having the same issue, is there a solution to this?
Sorry about the previous post, I was looking at a different thread when I posted this comment.
I am however having an issues with this functionality. I want to have the active row selected, but I have a custom color format on a single column that needs to be maintained.
For example here is what I want to happen: When a row is selected that row should be highlighted and the column that has the specific backColor to stay that color whether the cell is activated or not. Is there a simple way of maintaining this functionality?
Sorry about previous post , I did not saw your solution on that thread , indeed
using
aCell = (UltraGridCell)drawParams.Element.GetContext(typeof(UltraGridCell);
in a customize Filter that implements IUIElementDrawFilter interface solved this problem .
Thanks for helping Mike
I have tryied to apply you DrawFilter example "ultrawingrid_removing_selected_color_cs.zip" but because in my case I have to select a row not a cell :
e.Layout.Override.CellClickAction = CellClickAction.RowSelect;
drawParams.Element.SelectableItem become a UltraGridRow and changing drawParams.AppearanceData.BackColor will have an efect for the entire row.
Then the only alternative would be to use a DrawFilter.
Color.Empty solution does not worked .
SelectedAppearance it`s fine for the selected rows (cells) , but I dont have a similar property for the active cells and I don`t want to dezactivate activerow appearance because I have a blue border around it.
You would have to set the SelectedAppearance on the cells in the column. Or you could use a DrawFilter.
DrawFilter for Backcolor - Infragistics Forums