GridView Paging bug when using custom row control template element loaded.
When the first element is loaded and its set to IsEnabled = false then the first element on the next page is also set to IsEnabled to false.
bet when i go to the page number 3 and go back then is everything ok.
XAML:
<CheckBox Name="assembledCheckBox"
Margin="0,0,0,0"
FontWeight="Bold"
FontSize="10"
Grid.Row="1"
Grid.Column="1"
VerticalAlignment="Center"
HorizontalAlignment="Left" Content="Assembled"
IsChecked="{Binding a_status}" Loaded="assembledCheckBox_Loaded"
>
private void assembledCheckBox_Loaded(object sender, RoutedEventArgs e)
{
CheckBox temp = new CheckBox();
temp = (CheckBox)sender;
if (temp.IsChecked == true)
{
temp.IsEnabled = false;
}
}