Hi,
I have two styling issues wtih the GridView. The first is I am trying to by default set a column style to not display the Filter for a column by default (we only have a few columns in each grid that are filterable). My code is as follows:
<Style TargetType="telerik:GridViewColumn" > <Setter Property="IsFilterable" Value="False"/> </Style>Second, I have a cell style set as well but I now when I set the Background brush for a column it has no affect. What am I doing wrong?
<Style TargetType="telerik:GridViewCell" > <Setter Property="Template"> <Setter.Value> <ControlTemplate TargetType="{x:Type telerik:GridViewCell}"> <Border BorderBrush="{TemplateBinding BorderBrush}" BorderThickness="{TemplateBinding BorderThickness}"> <ContentPresenter Content="{TemplateBinding Content}" ContentTemplate="{TemplateBinding ContentTemplate}"/> </Border> </ControlTemplate> </Setter.Value> </Setter> <Setter Property="BorderBrush" Value="#FFEFEFEF" /> <Setter Property="BorderThickness" Value="0,0,1,0" /> <Setter Property="Margin" Value="2,0,0,0"/> <Setter Property="VerticalAlignment" Value="Center"/> <Setter Property="HorizontalAlignment" Value="Stretch"/> </Style>In the gridview I am setting the background as such:
Any help would be greatly appreciated!
David A.
<telerik:GridViewDataColumn DataMemberBinding="{Binding HoursCompleted}" Header="Hours" UniqueName="HoursCompleted" DataFormatString=" {0:n2}" HeaderTextAlignment="Center" Width="60" Background="#33FDA500"/>