Browse by Tags
» Styles (RSS)
I am using User Control derived from the Xceed Grid. I want the style to be given dynamically for the Xceed DataCell. I dont want to give the xaml but want to add style in the .cs file dynamically.
The code for the xaml for adding the style for xceed data cell:
Problem: I have a system that compares two datasets and displayes the differences in a DataGridControl. my customer wanted to see the data as below:
I have a problem where we need to set style on WPF Xceed grid cell, where we binding grid thru custom data source say DataModelA. Now datamodal have 10 properties. Where we want to set style on column 5 based on value of column 3.
column 3 has value < 10 column 5 of similar row should be in bold
column 3 has value > ...
I have the simple problem that the binded dataobject (for the datarow) has an array[columns.length] (named CellColors) which contains the colors for the datacells in that row. I tried to define a style with a DataTrigger to set the Background of the cells. That works, but how I can get the index (or the columnname) of the column ...
I have been searching for pointers as to how to change the foreground color of a Datacell to red if the value is negative and to green if the value is positive.
I thought of using Datatriggers , but the problem is that the comparison in DataTriggers is always equation there is no way I can say that a value is > or < than zero ...