Hello, I'm defining a checkbox column in xaml.
CheckBox c = myGrid.Columns[0].Cells[3].Control as CheckBox;
I know that in the click event I can grab the checkbox by using the following code, but that doesn't help me out when I want to change values without the click event.
Thanks
Scott
<
telerikGridView:GridViewDataColumn DataMemberBinding="{Binding Select}" Header=" ">
<telerikGridView:GridViewDataColumn.CellTemplate>
<DataTemplate>
<CheckBox HorizontalAlignment="Center" Click="checkBox_Click" IsThreeState="False" Loaded="chk_Loaded" />
</DataTemplate>
</telerikGridView:GridViewDataColumn.CellTemplate>
</telerikGridView:GridViewDataColumn>
I would like to check or uncheck the checkboxes through code. How would I do this? Something like:
CheckBox c = myGrid.Columns[0].Cells[3].Control as CheckBox;
I know that in the click event I can grab the checkbox by using the following code, but that doesn't help me out when I want to change values without the click event.
Thanks
Scott
CheckBox
checkBox = e.OriginalSource as CheckBox;
GridViewCell parentCell = checkBox.ParentOfType<GridViewCell>();