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
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?
I'm having the same issue, is there a solution to this?
This might help, also:
FAQ:How do I turn off the ActiveRowAppearance so that the active row in the grid does not appear selected.
I believe that the ActiveRowAppearance is likely picking up the default white background of the WinGrid itself.
I'm assuming you don't want the active row to highlight at all? If so, then set the ActiveRowAppearance.BackColor to Color.Empty instead of Color.Transparent.