Posted
on Jul 10, 2009
(permalink)
Hi,
I am having anotyher issue.
I have create a grid column as shown below
<grid:GridViewColumn HeaderText="Trend" Width="120">
<grid:GridViewColumn.CellStyle>
<Style TargetType="gridView:GridViewCell">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="gridView:GridViewCell">
<Border BorderThickness="0,0,0,1" BorderBrush="#FFB3B3B3">
<StackPanel Orientation="Horizontal">
<Button x:Name="btnTrend" Content="Trend" ></Button>
</StackPanel>
</Border>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
</grid:GridViewColumn.CellStyle>
</grid:GridViewColumn>
I need to enable or disable the the button(btnTrend) on the RowLoaded event. I am not able to find the control in RowLoaded event.
Can you please help me on resolving this request? Please correct me if the above XAML code is wrong.
Thanks,
Anwar