Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
275
XamDataGrid Cell background
posted

What's the best way to dynamically set  the background of a cell based on a value from another cell (same row).?

Here are some details:

I have a class like this:

public class MyClass{

...

public string EditableValue1;

public bool EditableValue1_Valid; // not displayed on grid

public bool Validate(){...}

}

and I want the user to be able to edit some fields (EditableValuex) , and after editing the Validate() method will verify the values and set EditableValue1_Valid that will trigger the change in background color (Style) of the edited cell.

Any ideas ?

Parents Reply Children
No Data