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

get sfdatagrid style

Thread ID:





133049 Oct 5,2017 08:30 PM UTC Oct 9,2017 05:10 PM UTC WPF 3
Tags: SfDataGrid
Asked On October 5, 2017 08:30 PM UTC

Hi, please help me. I used this file Styles.xaml in this way:

                                    <ResourceDictionary Source="/Syncfusion.SfGrid.WPF;component/Styles/Styles.xaml" />

how could I get that file to modify it? I only need to change a color. Thanks

Gnanasownthari Thirugnanam [Syncfusion]
Replied On October 6, 2017 01:49 PM UTC

Hi Andres, 

Thank you for contacting Syncfusion support. 

You can change the background or foreground color in SfDataGrid based on your application using below given style. 

Please let us know if you have any other further assistance on this. 

Gnanasownthari T. 

Replied On October 7, 2017 08:58 PM UTC

Thanks for the reply, i have a problem, i get this error

Error Ambiguous type reference. A type named 'SortDirectionToVisibilityConverter' occurs in at least two namespaces, 'Syncfusion.UI.Xaml.Grid' and 'Syncfusion.Windows.Tools.Controls'. Consider adjusting the assembly XmlnsDefinition attributes.

These are the origal file namespaces, none worked


I change with this namespace and worked, but I got the error mentioned


Gnanasownthari Thirugnanam [Syncfusion]
Replied On October 9, 2017 05:10 PM UTC

Hi Andres, 
AS per your given update we noticed that ambiguous assembly reference error occurred due to SortDirectionToVisibilityConverter is exist is both namespaces Syncfusion.UI.Xaml.Grid, Syncfusion.Windows.Tools.Controls. To resolve this issue by explicitly define the namespace for converter as mentioned in below KB article.  
KB link: 
Please let us know if you have any further assistance on this. 
Gnanasownthari T. 


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