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
1080
Generic way to change background color of rows
posted

I have a UserControl containing a xamDataGrid. The data source used for the grid is a sql data set. I can use different queries (and data sets) to fill the grid.

Now I should be able to change the background color for a specific rows, based on a value in a cell. Depending on the queries there are different cells. So I can't hard code the cell in the xaml code.
I need to find a way, to set the cell and the logic that defines the background color outside the xaml file.

Unfortunately I don't have any idea how this could be achieved.

Any ideas how this could be done?

 

Markus

Parents Reply Children
No Data