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:

Created:

Updated:

Platform:

Replies:

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

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

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. 

Regards, 
Gnanasownthari T. 


Andres
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

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"    



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. 
  
Regards, 
Gnanasownthari T. 
  
 


CONFIRMATION

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.

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

;