0

I have a DataGrid displaying 'Parent' records. First column has a button to show/hide RowDetails, made using this solution: I need the Expand / Collapse for RowDetailsTemplate. RowDetailsTemplate is another DataGrid, displaying 'Child' records. One of 'child' columns' is a checkbox. It all works fine if 'parent' has only a few 'children'. But if there is a hundred 'children', I have a small problem: expanding the RowDetails and clicking on any 'child' checkbox - would firstly scroll the 'parent' row to the visual top of the 'parent' grid. And then I need to find that 'child' again, and click on its checkbox again, to have it checked. Is there a way to 'freeze' a parent, and to have checkbox ticked in just one click?

Community
  • 1
  • 1

1 Answers1

1

I think that you just wanted a smooth scrolling in WPF listbox.

Here's an answered question to your problem.

With using:

ScrollViewer.CanContentScroll="False"
Community
  • 1
  • 1