I'm working with a gridview that has a CellTemplate with a CheckBox column and I'm able to set the IsEnabled value using the following code.
IList<CheckBox> cbks = myGridView.ChildrenOfType<CheckBox>().ToList<CheckBox>();MyObject selectedProject = myGridView.SelectedItem as MyObject; int SelectedIndex = myGridView.Items.IndexOf(selectedProject);cbks[SelectedIndex].IsEnabled = True;
This works great, but except ChildrenOfType<>() only provides the rows for visible rows. I can not set EnableRowVirtualization to False.
How do I get the index of the visible row that is within the List of checkboxes (chks)?
Thanks in advance.