i m back to trouble you again.
This time i have one issue that i need to attach differant background images to each cell of radgrid based on certain conditions in code behind.
i am using template column in radgrid as below.
<controls:GridViewDataColumn HeaderText="Test" Background="White" ShowDistinctFilters="False" >
<controls:GridViewDataColumn.CellStyle>
<Style TargetType="gridView:GridViewCell">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="gridView:GridViewCell">
<StackPanel Width="120" Height="120" Margin="5,5,5,5">
<StackPanel.Background>
<ImageBrush ImageSource="/Images/Header.jpg" />
</StackPanel.Background>
<TextBlock Width="Auto" HorizontalAlignment="Center" Margin="10,30" Text="{Binding SECURITY}" FontFamily="Verdana" Foreground="White" FontSize="10" FontWeight="Bold" TextWrapping="Wrap">
</TextBlock>
<HyperlinkButton Name="{Binding test}" HorizontalAlignment="Left" Margin="40,-30" Background="White" Height="15" Foreground="Green" FontWeight="Bold" Content="P" TargetName="_blank" Click="btnProductTest_Click"></HyperlinkButton>
<HyperlinkButton Name="{Binding test}" HorizontalAlignment="Right" Background="White" Height="15" Margin="40,-50" Foreground="Green" FontWeight="Bold" Content="R" TargetName="_blank" Click="btnRelation_Click"></HyperlinkButton>
</StackPanel>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</controls:GridViewDataColumn.CellStyle>
</controls:GridViewDataColumn>
Now i need to access this column in code behind and change it's background image dynamically.
Is there any event like ItemData_Bound where i could access each cell while data binding itself?
Thanks
Andy ------