I have a RadGridView that has its first column(named "Visible") as a CheckBox cell in every row.
I have another CheckBox that toggles all the CheckBoxes in the GridView. In this CheckBox's ToggleStateChanged
handler, I am trying to get the checkbox element in the GridView row and toggle its state.
This is what I am trying at the moment:
foreach(var myGridRow in curveGridView.Rows)
{
((GridViewCheckBoxColumn)myGridRow.Cells["Visible"].ColumnInfo).Checked = Telerik.WinControls.Enumerations.ToggleState.On;
}
However, I am unable to get the RadCheckBox element in the GridView Row and I cannot toggle the checkbox in the row.
Any help would be greatly appreciated.
one thing to note for this issue is that the checkbox to toggle all other checkboxes in the gridview is outside the gridview.
i.e. I have a groupbox. The groupbox contains the CheckBox and the GridView. This groupbox contains the CheckBox to toggle all other GridView checkboxes. Hope this helps understand better.