Forum Discussion

tyrus's avatar
tyrus
Contributor
9 years ago

Scrolling in wpf grid

hi.

Does anyone know how to scroll a WPF Grid or a MS DataGrid?

So far I have been doing:

 

Aliases........RecordsView.Grid.dgMain.ScrollHost.ScrollableHeight// get # of scoll increments

 

//Then set the scroll position

Aliases...............RecordsView.Grid.dgMain.ScrollHost.VerticalOffset = #

 

but it only moves the scroll bar, it doesn't actually scroll the grid itself?

 

any thought?

2 Replies