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

Setting the RowBackground & AlternatingRowBackground to another color still returns White at runtime.

Thread ID:





111038 Sep 5,2013 02:39 AM UTC Sep 6,2013 04:11 AM UTC WPF 1
Tags: GridControl
Clint David
Asked On September 5, 2013 02:39 AM UTC


We are using Syncfusion (v11.2) GridDataControl. We have set the RowBackground and AlternatingRowBackground to a color other than "White" but the output is always White. We ave set ShowAddNewRow to False as well.

<Style x:Key="GridDataControlBaseStyle" TargetType="{x:Type syncfusion:GridDataControl}">

        <Setter Property="ShowAddNewRow" Value="False" />

        <Setter Property="RowBackground" Value="Gray" />

        <Setter Property="AlternatingRowBackground" Value="Gray" />



Looking at the source code, the properties are defaulted to White. 

I saw some post about this in the forums and i hope i don't get a similar response that it does not happen on your side.


Hoping for your response as it is a very big annoyance to see a patch of white in our apps appearance.




Gobinath A [Syncfusion]
Replied On September 6, 2013 04:11 AM UTC

Hi Clint,

Thanks for using syncfusion products.

We have analyzed your query and if we are creating the style for the GridDataControl then we have to add the StaticResource Key in the GridDataControl style as below the code snippet.

Code snippet[XAML]:

  <syncfusion:GridDataControl Name="syncgrid"




    ItemsSource="{Binding GDCSource}"




    Style="{StaticResource GridDataControlBaseStyle}"


We have prepared a simple sample based on your requirement and please find the sample under the following location.

Sample: GDC_Sample.zip

Please let us know if you have any queries.


Gobinath A


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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