Is there a way to let the user scroll the grid horizontally using the mouse wheel (or tilt wheel as some call it)?
For example, holding down shift-key and scrolling would cause it to scroll horizontally.
I know the capturing mouse movements part is out of the scope of this forum, but assuming I can figure that out, is there a way to trigger a horizontal scroll event or something similar on the grid?
Thanks,Jeff
Sorry for the slow response, didn't get around to testing it until today. It works great. Thanks!
Hello Jeff,
Have you been able to resolve your issue ? Did you have a time to take a look at the attached sample.
Please let me know if you have any questions.
Regards
Maybe one possible way to achieve this behavior is to handle ultraGrid1_MouseWheel() event and include the code below:
void ultraGrid1_MouseWheel(object sender, MouseEventArgs e)
{
Debug.WriteLine("asdasdasd = " + IsShiftPress);
if (e.Delta < 0 && IsShiftPress)
ultraGrid1.ActiveColScrollRegion.Scroll( Infragistics.Win.UltraWinGrid.ColScrollAction.LineRight);
}
else if (e.Delta > 0 && IsShiftPress)
ultraGrid1.ActiveColScrollRegion.Scroll(Infragistics.Win.UltraWinGrid.ColScrollAction.LineLeft);
You could take a look at the attached sample for more details. Please let me know if you have any questions.
Georgi