BoldDeskWe are launching BoldDesk on Product Hunt soon. Learn more & follow us.
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.
Hoping for your response as it is a very big annoyance to see a patch of white in our apps appearance.
Regards,
Clint
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.
Gobinath
A