Hi nilesh,
When we handle the Scroll event, the FirstDisplayedScrollingColumnIndex and HorizontalScrollingOffset properties are not changed immediately. In other words, they still kept the old values. We can get the new scroll parameters via the Scroll event arguments. This is the code snippet:
private void grdBookingMonth_Scroll(object sender, ScrollEventArgs e)
{
if (e.ScrollOrientation == ScrollOrientation.HorizontalScroll)
{
grdHeaderMonth.HorizontalScrollingOffset = e.NewValue;
}
}
Let me know if this does not help.
Aland Li
Please mark the replies as answers if they help and unmark if they don't. This can be beneficial to other community members reading the thread.