I want to add a converter in my DataGrid that is binded with an itemsSource.
<DataGrid x:Name="DataGrid1" ItemsSource="{Binding List}"/>
And ItemSource has been binded with a list. There is a boolean property (IsClientGood). I want that my datagrid doesn't show a checkbox but a color thanks to a converter. Here is the converter. Thank you guys for your help !
I assume, that you don't know, where to place the converter? If you want to customize the look of
DataGrid, you must avoid generating columns from properties, ad define them manually.Something like this:
where
BoolToColorConverterKeyis a key of resource, that defines yourBoolToColorconverter.