We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. (Last updated on : Nov 16th 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Derived GridComboBoxCellRenderer

Thread ID:

Created:

Platform:

Replies:

59463 Apr 13,2007 06:56 AM UTC WinForms 0
loading
Tags: GridControl
Chris
Asked On April 13, 2007 06:56 AM UTC

Hi,

I have derived from a GridComboBoxCellRenderer, and I want to enable the mouse wheel for scrolling thru the items. I added the following code:

public override bool ProcessMouseWheel(MouseEventArgs e)
{
if (this.IsDroppedDown)
{
if (e.Delta < 0)
this.ListBoxPart.TopIndex++;
else
this.ListBoxPart.TopIndex--;
return true;
}
return false;
}

But when I use the wheel nothing happens. During a debug session I found out, that the ListBoxPart.TopIndex++ or -- doesn't have any influence on the value - it remains 0.

Any ideas what's wrong there?

Cheers,
Chris

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

;