Hi, I am using xamdatagrid in my project and while running grid. if scrollbar is in mid on clicking of any column at top(sorting option), scrollviewer should move to top but it's not chaning it's original position. please suggest how to reset it's position to top on clicking any column using sort button
Hello Hitesh,
Thank for your post. I have been looking into it and my suggestion is to hook on the Sorted event of the xamDataGrid and call the BrintRecordIntoView() method there of the first record. This way after sorting you will bring the scrollviewier to its intial position. I have attached a sample which demonstrates this.
If you have more questions do not hesitate to ask.
Sincerely, Teodor Software Developer Infragistics www.infragistics.com/support
Hi Teodor,
Apologies for late responding. yes, this solution works fine withminial code changes. Thanks for your help
Regards
Hitesh
Hello Teodor,
Thanks. I have marked answer as Verified.
I am really glad, I could help out. If you do not have any further questions, please verify this thread as answered, so it helps other users as well.
Thanks, Teodor Software Developer Infragistics www.infragistics.com/support