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.

get sfdatagrid style

Thread ID:





133049 Oct 5,2017 04:30 PM Oct 9,2017 01:10 PM WPF 3
Tags: SfDataGrid
Asked On October 5, 2017 04:30 PM

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 09:49 AM

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 04:58 PM

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 01:10 PM

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.

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.