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

Issues on selection and Edit style

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.

Regards,

Attachment: SyncFusion_402e0c22.zip

3 Replies

JG Jai Ganesh S Syncfusion Team June 17, 2016 10:32 AM UTC

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"                              
                               AllowResizingColumns="True" 
                               AllowSorting="False" 
                               AutoGenerateColumns="False" 
                               ColumnSizer="Auto"                                
                               LiveDataUpdateMode="Default" 
                               NavigationMode="Row" 
                               Background="White"  
                               SelectionForegroundBrush="Black" 
                               Foreground="Black" 
                               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\14.1.0.46\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. 
 
 
 
Regards, 
Jai Ganesh S 



OH Okba Hosni June 17, 2016 10:53 AM UTC

Hi,

Thanks, that's clear.


JG Jai Ganesh S Syncfusion Team June 20, 2016 04:08 AM UTC

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


Loader.
Up arrow icon