Hi,
this is style i m using for the Header
<Style TargetType="telerik:GridViewHeaderCell" x:Key="HeaderStyleForAction">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerik:GridViewHeaderCell">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
<Image Name="imgAdd" Tag="{Binding TableCompositeKey}"
ToolTipService.ToolTip="Edit" HorizontalAlignment="Center"
VerticalAlignment="Top" Source="../../IMAGES/Action.PNG" />
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
and i m dynamically generating columns
gvdc = new GridViewDataColumn();
gvdc.DataMemberBinding = new System.Windows.Data.Binding("ID");
gvdc.HeaderCellStyle = (Style)this.Resources["HeaderStyleForAction"];
radGridView1.Columns.Add(gvdc);
when i run, the Style is not applied to Column
m i going wrong somewhere? pls help me someone
Thanks..
this is style i m using for the Header
<Style TargetType="telerik:GridViewHeaderCell" x:Key="HeaderStyleForAction">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="telerik:GridViewHeaderCell">
<StackPanel HorizontalAlignment="Center" VerticalAlignment="Center" Orientation="Horizontal">
<Image Name="imgAdd" Tag="{Binding TableCompositeKey}"
ToolTipService.ToolTip="Edit" HorizontalAlignment="Center"
VerticalAlignment="Top" Source="../../IMAGES/Action.PNG" />
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
and i m dynamically generating columns
gvdc = new GridViewDataColumn();
gvdc.DataMemberBinding = new System.Windows.Data.Binding("ID");
gvdc.HeaderCellStyle = (Style)this.Resources["HeaderStyleForAction"];
radGridView1.Columns.Add(gvdc);
when i run, the Style is not applied to Column
m i going wrong somewhere? pls help me someone
Thanks..