Hi,
Within a WinForms UlraGrid, I am looking for a means (via code) to alter the appearance of an entire row, whenever a targeted column value meets a certain condition. For example, I already know that I can target the respect cell via the ConditionValueAppearance. The closest I could find to what might work is the ConditionAppearanceRow Class. Unfortunately you don't provide any code snippets to demonstrate how this class is hooked up with a given DisplayLayout Band.
In any case, I need this capability through code, so I can set the row appearance on the fly. If there is another way to do this, I am all ears.
Thanks,
Lacy
Hello Ganesh,
I am not sure about what pencil you are talking about. Are you saying that in the InitializeRow event if you are changing the values in the cells you are getting some sort of images in the RowSelectors? Could you please provide a small sample project or a screenshot.
InitializeRow event worked as expected (as I wanted to update the content of the cells), but the row header of each row shows that the row is in edit mode (i.e. the pencil sing with ...).
How to get rid of this.
Thanks in advance,
Ganesh.
Thanks Mike,
I ended up doing it with InitializeRow indeed.
It's not as cool, but it works fine.
There's no way to "bind" a color to a cell or a row. But you could accomplish what you want here very easily by using the InitializeRow event.
Hi Mike,
Is there any chance that conditional formatting may be applied simply by DataBinding?
Let's say the datagrid is bound to a BindingList<MyDataObject>
couldn't the MyDataObject expose a Color property on which to bind the forecolor property of the cell?
If so, how would you declare the databinding?