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.
Unfortunately, activation email could not send to your email. Please try again.

Checkbox Styling when Not Editable & Ticked

Thread ID:





127619 Nov 28,2016 09:44 PM Nov 29,2016 07:29 AM UWP 1
Tags: SfDataGrid
David Harvey
Asked On November 28, 2016 09:44 PM

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"/>


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.

Srinivasan Vasu [Syncfusion]
Replied On November 29, 2016 07:29 AM

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. 
                <Style  TargetType="CheckBox"> 
                    <Setter Property="Foreground" Value="Blue"/> 
                    <Setter Property="BorderThickness" Value="0"/> 
                    <Setter Property="Visibility" Value="Visible"/> 
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. 


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.

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.