Hi, I have a wingrid embedded in a tab pane of a tab control. The wingrid displays data in 4 band levels. When clicking on a column header in the lowest band level, sometimes the wingrid will scroll to the top, causing the user to lose track of where they were. I have attached a short video that demonstrates the problem.
Thanks, Bill
Hi Bill,
Well, that makes sense, I suppose. Store the row and then restore it's position. Thanks for the update.
It would still be nice to know why it's happening in the first place, though.
Hi Mike,
Our staff discovered a clever workaround fix for this which is to implement BeforeSortChange and AfterSortChange handlers to reposition the scroll bar:
void OnBeforeSortChange(object sender, BeforeSortChangeEventArgs e)
{
//remember current scroll position _scrollPosition = this.ActiveRowScrollRegion.ScrollPosition; }
void OnAfterSortChange(object sender, BandEventArgs e) {
//restore remembered scroll position this.ActiveRowScrollRegion.ScrollPosition = _scrollPosition; }
Regards,
Bill
Let's close it for now because I don't know when the other group will be able to get to it.
Thanks,
Do you have any kind of estimate as to when you will be ready to revisit this issue? If you know when, I can put the case on hold and check back with you then. Otherwise, it might be better to just close this came and you or someone at your company can open a new one when you have time. :)
Not yet. I've been sidetracked with some other responsibilities. I may need to turn this over to another group in my company.