We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Get entire object in converter

I'm trying to change the background of cell depending on their values. I found this KB 2601 and I would like to use converter but how can I send the entire object to converter not just cell mapped value ?

1 Reply

DY Deivaselvan Y Syncfusion Team March 15, 2019 10:21 AM UTC

Hi xmen, 
Thanks for contacting Syncfusion support. 
You can get the object in the converter by leaving the Binding value and specify only the Converter as shown in the following code example. 
Code example :  
<syncfusion:GridTextColumn MappingName="Column1"> 
        <Style TargetType="syncfusion:GridCell"> 
            <Setter Property="Background" Value="{Binding  Converter={StaticResource NameToColorConvertor}}" /> 
We have modified the KB sample based on the above code snippet and it is available in the following link for your reference. 
Please let us know if you need any further assistance in this. 

Live Chat Icon For mobile
Up arrow icon