Hi I have a ultraGrid and using datasource to bound as
grid.SetDataBinding(List , null, true);
If any addition or updating the list I am using like
_list.Add(newItem) ;
_view.List = _list;
My problem is if I scroll the grid down and add or update the list scroll is going to top which I dont want.
I have UltraTree and behaving the same .
I want not to move the scroll position until user move it.
Please advise.
I'm not sure I understand what you are describing. It looks like the new row you are added would be added to the bottom, since you are using Add and not Insert. So I don't see anything here that should cause the list to scroll.
But I'm not sure what _view is here or why you are re-assigning it every time you add an item to your list.
Hi
I am describing again about my issue here below.
1)I am binding List to grid as below.
I am using sorting for rows and groups.
2) I am doing insertion , addition, delete and update to the List and doing the same binding again
Scroll bar is going to top always because I am sorting the rows always.
I am doing the same to TreeView. TreeView 's scroll bar also going to Top .
Is there any other way I can avoid to scroll to top when data refresh.
Thanks