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

get sfdatagrid style

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

<syncfusion:SfDataGrid.Resources>
                            <ResourceDictionary>
                                <ResourceDictionary.MergedDictionaries>
                                    <ResourceDictionary Source="/Syncfusion.SfGrid.WPF;component/Styles/Styles.xaml" />
                                </ResourceDictionary.MergedDictionaries>
                            </ResourceDictionary>
</syncfusion:SfDataGrid.Resources>

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

3 Replies

GT Gnanasownthari Thirugnanam Syncfusion Team 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. 

Regards, 
Gnanasownthari T. 



AN Andres 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

xmlns:local="clr-namespace:Syncfusion.UI.Xaml.Grid"
                    xmlns:filterrow="clr-namespace:Syncfusion.UI.Xaml.Grid.RowFilter">

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

xmlns:local="http://schemas.syncfusion.com/wpf"    




GT Gnanasownthari Thirugnanam Syncfusion Team 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. 
  
Regards, 
Gnanasownthari T. 
  
 


Loader.
Live Chat Icon For mobile
Up arrow icon