I have a grid with a check box column that enable users to see checked when row is selected.
<
Style
x:Name
=
"GridViewCheckBoxStyle"
TargetType
=
"telerik:GridViewCell"
>
<
Setter
Property
=
"Template"
>
<
Setter.Value
>
<
ControlTemplate
>
<
Border
>
<
CheckBox
Style
=
"{StaticResource CommonCheckBoxStyle}"
IsChecked
=
"{Binding IsSelected,Mode=TwoWay}"
Checked
=
"ContactSelcted"
Unchecked
=
"ContactUnSelcted"
Margin
=
"2,0"
HorizontalAlignment
=
"Center"
/>
</
Border
>
</
ControlTemplate
>
</
Setter.Value
>
</
Setter
>
The problem is when i select one row and scroll up and the selected row get hidden suddenly Unchecked event is fired. But i dont want it to happen. but then when the selected row get visible again the checkbox is checked "by itself" and thus checked event fired. i want to keep the checked row as it is event if it is not visible. why is this happening and how to solve it?
Thank you in advance.