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.

Issues on selection and Edit style

Thread ID:





124602 Jun 16,2016 09:48 AM Jun 20,2016 12:08 AM WinRT 3
Tags: SfDataGrid
Okba Hosni
Asked On June 16, 2016 09:48 AM

Hi SyncFusion Team,

I have an issue on sfDataGrid, When I set background and foreground, the selected row data disappear when I change the selection.
Also, I can't find "additional templates" and "edit a copy" when I want to edit the sfDataGrid style.
[I use visual studio 2015 on Windows 8.1]
Find attached an example of the selection issue and a screenshot of Edit style.


Attachment: SyncFusion_402e0c22.zip

Jai Ganesh S [Syncfusion]
Replied On June 17, 2016 06:32 AM

Hi Okba, 
Please find the responses for your queries as below, 
Query 1: 
You can achieve your requirement by setting the SelectionForegroundBrush property in SfDataGrid like below, 
   <syncfusion:SfDataGrid x:Name="datagrid"                              
                               ItemsSource="{Binding Stocks}"/> 
Kb Link: 
Query 2: 
WinRT controls does not have the options to edit the styles in visual studio designer. You have to manually edit the style in XAML by writing style of TargetType to corresponding control. 
Once the Essential Studio was installed, you can get the default style of all Syncfusion WinRT controls in the below path. 
C:\Program Files (x86)\Syncfusion\Essential Studio\ (Version name)\Assemblies for WinRT\8.0\ (DLL of the corresponding control)\ 
Likewise, you can get the default style of SfDataGrid from the below path, 
C:\Program Files (x86)\Syncfusion\Essential Studio\\Assemblies for WinRT\8.0\Syncfusion.SfGrid.WinRT\Control\Themes 
The styles for the controls like GridFilterControl, DataPager, MultiColumnDropDownControl, etc. are shipped in the below folder structure. 
Jai Ganesh S 

Okba Hosni
Replied On June 17, 2016 06:53 AM


Thanks, that's clear.

Jai Ganesh S [Syncfusion]
Replied On June 20, 2016 12:08 AM

Hi Okba, 
Thank you for the update. 
Please let us know if you need further assistance on this. 
Jai Ganesh S 


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.