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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

only one column with different checkbox look ?

Thread ID:





116177 Apr 20,2014 06:22 PM UTC Apr 28,2014 02:43 PM UTC WPF 3
Tags: GridDataControl
Asked On April 20, 2014 06:22 PM UTC

Hi SF,

I have a GDC with various columns and several of them are of bool type, showing as checkboxes.
All that fine, but I would like only one column of  these bool type to look like a checked / unckecked

star, like this:

The other columns should remain with unchanged standard checkbox look.

How can I do that ? code example possible ?



Saravanan C [Syncfusion]
Replied On April 23, 2014 01:07 PM UTC

Hi Fabrice,


We have analyzed your query and you can achieve your requirement by using DataTemplate cell type for particular column that you want to show checked/unchecked stars based on bool property type. Please find the code snippet and sample in the following location,


Code Snippet[XAML]:

<syncfusion:GridDataVisibleColumn MappingName="Check">                                         




                <Image Name="image11" Source="Images\rating.png"/>

                <Image Name="image22" Source="Images\rating1.jpg"/>



                <DataTrigger Binding="{Binding Path=Record.Data.Check}" Value="False">

                    <Setter TargetName="image11"  Property="Visibility" Value="Hidden"/>

                    <Setter TargetName="image22"  Property="Visibility" Value="Visible"/>


                <DataTrigger Binding="{Binding Path=Record.Data.Check}" Value="True">

                    <Setter TargetName="image11" Property="Visibility" Value="Visible"/>

                    <Setter TargetName="image22"  Property="Visibility" Value="Hidden"/>







Sample: http://www.syncfusion.com/downloads/support/directtrac/123982/DataTriggerBinding-223488503.zip


Please let us know if you have any queries.



Saravanan C

Replied On April 25, 2014 06:00 AM UTC

Thanks Saravanan
It works perfectly !

Saravanan C [Syncfusion]
Replied On April 28, 2014 02:43 PM UTC

Hi Fabrice,

Thanks for your replay.

Please let us know if you need further assistance.


Saravanan C


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon