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?
Asked
Active
Viewed 495 times
0
-
1Tried with `ScrollViewer.CanContentScroll="False"` ? – Mar 06 '17 at 18:55
-
Yes, that worked, thanks! – Alexey Titov Mar 06 '17 at 20:15
1 Answers
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

Yıldız Ardal
- 83
- 6