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.

MouseControllerDispatcher prob

Thread ID:

Created:

Updated:

Platform:

Replies:

14053 May 17,2004 12:06 PM May 18,2004 06:16 AM Windows Forms 3
loading
Tags: Grouping
Administrator [Syncfusion]
Asked On May 17, 2004 12:06 PM

I was just adding a splitter to a screen when for no obvious reason the MouseControllerDispatcher is empty. i ran the two in a file compare and dont see the problem. attached are the before and after splitter. private void Form21_Load(object sender, System.EventArgs e) { this.gridGroupingControl1.TableOptions.ListBoxSelectionMode = SelectionMode.MultiExtended; GridSelectCellsMouseController controller = null; foreach (IMouseController mc in this.gridGroupingControl1.TableControl.MouseControllerDispatcher) { if (mc is GridSelectCellsMouseController) { controller = mc as GridSelectCellsMouseController; } } if (controller != null) { this.gridGroupingControl1.TableControl.MouseControllerDispatcher.Remove(controller); this.gridGroupingControl1.TableControl.MouseControllerDispatcher.Add(new MyGridSelectCellsMouseController(this.gridGroupingControl1.TableControl)); } badmouse_7414.zip

Administrator [Syncfusion]
Replied On May 17, 2004 01:21 PM

looks like being in a panel causes these problems, but i need the panel for the splitter to work properly, any suggestions? tia

Administrator [Syncfusion]
Replied On May 18, 2004 02:56 AM

Try calling this.gridGroupingControl1.TableControl.Initialize(); after the call to InitializeComponent() in the form''s constructor.

Administrator [Syncfusion]
Replied On May 18, 2004 06:16 AM

thanks, if i put there i get the following exception: An unhandled exception of type ''System.ArgumentException'' occurred in system.windows.forms.dll Additional information: ''-3227'' is not a valid value for ''LargeChange''. ''LargeChange'' must be greater than or equal to 0. but if i move it to form_load it works. ats good!

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.

;