Hi,
There is a "ScrollIntoView" method ? like the one used with the WPF ListView ?
Also, is there a way to reset the scrollbar on the top ?
Thanks
this.xamDataGrid.BringRecordIntoView(myRecord);
Joe,
I can't get this to work correctly. The grid does scroll, but the record is rarely visible. Instead, I see either the group by record header or part of the label header.
I have a NEXT button which locates, activates and brings the next record into view.
Here's a blow-by-blow description of what I see as I hit the next button repeatedly, starting from the last child record in a group followed by another group containing 7 child records and that next group is not visible on the screen:
1. The grid scrolls a little, bringing the next group into view just a little. The group is expanded. All I can see is the group by header and about 1/3 of the label row - not even enough to read the labels.
2. The grid jumps in a "large increment". I can now see the first record, the 2nd record (correctly selected) and 1/2 of 3rd record.
3. The grid jumps again and I can now see the 3rd record (it's selected), the 4th record and entire 5th record.
4. No scrolling takes place. The selection moves down to the 4th record as expected.
5. No scrolling takes place. The selection moves down to the 5th record as expected.
6. The grid jumps. I can see 6th record (selected), the 7th record, the GBR for the next group and half of the GBR for the group after that.
7. No scrolling takes place. The selection moves down to the 5th record as expected.
8. The next GBR opens, but I can only see it and the full label row inside it. I can't see the 1st record in it, which is selected.
9. The grid jumps up and I can see the 2nd record (selected) and the 3rd record.
and so on... Of course, the users aren't too happy about this behavior.
Any ideas?
Thanks.