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

Checkbox Styling when Not Editable & Ticked

Presently, it's easy enough to set the styling for a checkbox type grid column when it is both checked *AND* Editable:

<Style x:Key="CellStyleBlue" TargetType="Grid:GridCell">

<Setter Property="Foreground" Value="Blue"/>

<Setter Property="BorderThickness" Value="0"/>

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

</Style>


However, if the column is not marked checked *and* editable, this styling is not applied.  What do I need to do to customize those as well?


Thank you.


1 Reply

SV Srinivasan Vasu Syncfusion Team November 29, 2016 12:29 PM UTC

Hi David, 
 
Thanks for contacting Syncfusion support. 
 
We cannot understand your query clearly. You can set Style for CheckBox directly in SfDataGrid using below code example. 
 
Xaml 
   <syncfusion:SfDataGrid.Resources> 
                <Style  TargetType="CheckBox"> 
                    <Setter Property="Foreground" Value="Blue"/> 
                    <Setter Property="BorderThickness" Value="0"/> 
                    <Setter Property="Visibility" Value="Visible"/> 
                </Style> 
            </syncfusion:SfDataGrid.Resources> 
 
 
 
Could you please provide more details about your requirement? If it is possible please modify the above sample based on your requirement. It will be more helpful for us to serve you better. 
 
Regards, 
Srinivasan 
 


Loader.
Live Chat Icon For mobile
Up arrow icon