C#:
this.gridControl1.VerticalScroll += gridControl1_VerticalScroll;
void gridControl1_HorizontalScroll(object sender, ScrollEventArgs e)
{
// Required Code
}
this.gridControl1.HorizontalScroll += gridControl1_HorizontalScroll;
void gridControl1_VerticalScroll(object sender, ScrollEventArgs e)
{
//Required Code
} |
C#:
ScrollersFrame scrollersFrame1 = new ScrollersFrame();
scrollersFrame1.AttachedTo = this.gridControl1;
scrollersFrame1.HorizontalScroller.MouseDown += new MouseEventHandler(HorizontalScroller_MouseDown);
scrollersFrame1.HorizontalScroller.MouseUp += new MouseEventHandler(HorizontalScroller_MouseUp);
void HorizontalScroller_MouseUp(object sender, MouseEventArgs e)
{
// Required Code
}
void HorizontalScroller_MouseDown(object sender, MouseEventArgs e)
{
// Required Code
} |