Ok, found it myself.
I found a fine article that describes scrolling:
In it the author specifically says "the scrolling will be wacky because the scrollable range has not been set".
I used the sample "Manually Setting the Scroll Range" and the part that I was missing is setting the zedGraphControl1.ScrollMinX
and zedGraphControl1.ScrollMaxX
properties. Once I defined these values everything started working as expected. I also found that in my case, the value of zedGraphControl1.IsAutoScrollRange
had no effect, but I left it set to false
to be consistent with the example. This would probably have an effect if the dataset is dynamic.