Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
350
WPF XamGrid programatically scroll to a row?
posted

Hi,

I am using XamGrid 13.2 and trying to implement a request to have the read-only grid of 20 rows/5 columns show its vertical middle regardless of the vertical size. I.e. if there is no enough space for the whole grid it should, for example, scroll to row 2 in order to have 2-17 displayed (out of 0-18).

I tried to set 'VerticalScrollBar' scrollbar's position in the code - the scrollbar displayed in the middle yet data is still displayed incorrectly. Looks like vertical scrollbar's value has no two-way binding set.

Any ideas on how to get the grid scrolling to the required positon?

Thanks, Alex