This question is locked. New answers and comments are not allowed.
Hi,
I am having a gridview with RowDetailsVisibilityMode="VisibleWhenSelected". How can I close rowdetail / deselect row , without have to open another rowdetails / select another row, so there will be no rowdetails open ?.
Ihave tried the following.
I placed a button with this code
in the row details template.
This closed the rowdetails, but it stayed closed forever. clicking on another row and clicking back did not reopen the detailsrow.
best regards
Ole
I am having a gridview with RowDetailsVisibilityMode="VisibleWhenSelected". How can I close rowdetail / deselect row , without have to open another rowdetails / select another row, so there will be no rowdetails open ?.
Ihave tried the following.
I placed a button with this code
private void btnCloseDetail_Click(object sender, RoutedEventArgs e) { var btn = (RadButton)sender; var row = btn.ParentOfType<GridViewRow>(); row.DetailsVisibility = Visibility.Collapsed; }in the row details template.
This closed the rowdetails, but it stayed closed forever. clicking on another row and clicking back did not reopen the detailsrow.
best regards
Ole