this.sfDataGrid1.TableControl.VerticalScroll.ValueChanged += VerticalScroll_ValueChanged;
this.sfDataGrid1.TableControl.VerticalScroll.Scroll += VerticalScroll_Scroll;
this.sfDataGrid1.TableControl.HorizontalScroll.ValueChanged += HorizontalScroll_ValueChanged;
this.sfDataGrid1.TableControl.HorizontalScroll.Scroll += HorizontalScroll_Scroll;
private void VerticalScroll_Scroll(object sender, ScrollEventArgs e)
{
MessageBox.Show("Scroll event");
}
private void VerticalScroll_ValueChanged(object sender, EventArgs e)
{
MessageBox.Show("Scroll value changed event");
}
private void HorizontalScroll_Scroll(object sender, ScrollEventArgs e)
{
MessageBox.Show("Horizontal Scroll event");
}
private void HorizontalScroll_ValueChanged(object sender, EventArgs e)
{
MessageBox.Show("Horizontal Scroll value changed event");
} |
For further and immediate clarity, is there any difference between
ValueChanged versus Scroll events
?
M. Sivanandham, thanks a lot.
So far we've looked at :::
For even more clarity perhaps, I noticed there's also :::
Can anything be explained about this latter event, compared to the other four handlers ?
– Yvo G. Dries –