Hi Shaolin,
Thank you for your update.
You can make use of the ScrollerFrame control and assign this control to our GridControl scrollbar by using the AttachedTo property. Please refer the below code snippet. This custom scroll bar has the required MouseDown and MouseUp events.
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
} |
We have created a simple sample for your convenience. You can download it from here
CustomScrollBar.
Please let me know if you have any further concerns
Regards,
Anish.