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.
Unfortunately, activation email could not send to your email. Please try again.

Derived GridComboBoxCellRenderer

Thread ID:

Created:

Platform:

Replies:

59462 Apr 13,2007 02:55 AM Windows Forms 0
loading
Tags: GridControl
Chris
Asked On April 13, 2007 02:55 AM

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,
Tom

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.

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.

;