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:

Created:

Updated:

Platform:

Replies:

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

Hi,

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" />

    </Style>

 

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.


http://www.syncfusion.com/support/forums/grid-wpf/91064/why-background-color-of-the-first-row-in-griddatacontrol-is-white


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

 

Regards,

Clint



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"

    Grid.Row="1"

    AutoPopulateColumns="False"

    AutoPopulateRelations="False"

    ItemsSource="{Binding GDCSource}"

    NotifyPropertyChanges="True"

    ShowAddNewRow="False"

    ShowFilters="True"

    Style="{StaticResource GridDataControlBaseStyle}"

    UpdateMode="PropertyChanged">

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.

Regards,

Gobinath A
 


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

;