I have an ultragrid with data binded, when I start scrolling vertically the grid the latest row is not in view. But when I leave scroll then the latest row comes into view. How can I achieve this?
Hello Sumit,
I have been investigating into the behavior you are seeing, and it sounds like the layout of your UltraGrid has the Deferred ScrollStyle enabled. In order to prevent this behavior, you can set this to Immediate. You can use the below code to do this:
this.ultraGrid1.DisplayLayout.ScrollStyle = ScrollStyle.Immediate;
Please let me know if you have any other questions or concerns on this matter.
I have checked in my code and it is having ScrollStyle set as ScrollStyle.Immediate. But it is still giving me the same problem. Can there be any other cause of this behaviour?
Me.grdResult.DisplayLayout.ScrollBounds = Infragistics.Win.UltraWinGrid.ScrollBounds.ScrollToFill Me.grdResult.DisplayLayout.ScrollStyle = Infragistics.Win.UltraWinGrid.ScrollStyle.Immediate Me.grdResult.DisplayLayout.ViewStyle = Infragistics.Win.UltraWinGrid.ViewStyle.SingleBand
I checked again in a different way. It worked.
Thanks.