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. Image for the cookie policy date
close icon

Derived GridComboBoxCellRenderer

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

Loader.
Live Chat Icon For mobile
Up arrow icon