This question is locked. New answers and comments are not allowed.
Hello,
I have a RadGridView with a button in each row, and when I click the button, I need to set the corresponding row to be selected. I've seen several examples with something similar to the following:
However when using that, the selected item of the grid never changes. I also did some digging through each of the rows when the grid has a SelectedItem, and IsSelected was false for every row. Is this a bug, or am I missing something? Thanks!
Jeremy
I have a RadGridView with a button in each row, and when I click the button, I need to set the corresponding row to be selected. I've seen several examples with something similar to the following:
private void CollapseBtn_Click(object sender, RoutedEventArgs e){ var senderElement = e.OriginalSource as FrameworkElement; var row = senderElement.ParentOfType<GridViewRow>(); if (row != null) { row.IsSelected = true; } ....However when using that, the selected item of the grid never changes. I also did some digging through each of the rows when the grid has a SelectedItem, and IsSelected was false for every row. Is this a bug, or am I missing something? Thanks!
Jeremy