Hi,
Okay, it's possible to disable the mouse wheel, but it requires a bit of work. When the cell goes into edit mode, the grid places a derived TextBox control over the cell and it is this TextBox that handles the MouseWheel. So you have to get a reference to the TextBox and handle it's MouseWheel event and then mark it handled.
Here's some code that worked for me in a small sample:
private void ultraGrid1_ControlAdded(object sender, ControlEventArgs e) { EmbeddableTextBox textBox = e.Control as EmbeddableTextBox; if (textBox != null) textBox.MouseWheel += new MouseEventHandler(textBox_MouseWheel); } private void ultraGrid1_ControlRemoved(object sender, ControlEventArgs e) { EmbeddableTextBox textBox = e.Control as EmbeddableTextBox; if (textBox != null) textBox.MouseWheel -= new MouseEventHandler(textBox_MouseWheel); } void textBox_MouseWheel(object sender, MouseEventArgs e) { HandledMouseEventArgs args = e as HandledMouseEventArgs; if (args != null) args.Handled = true; }
I'd be happy to try to help, but there are too many unknowns here for me to guess at this point.For example, how are you providing the dropdown for the cell? A ValueList? An UltraDropDown? An UltraComboEditor? An UltraCombo?
And what version of the controls are you using?
Where exactly is the mouse - over the cell? Is the cell in edit mode?
If you could post a small sample project here which demonstrates the problem, I'd be glad to take a look and see if I can figure out what's going on and how to stop it. :)