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: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

OnClick event swallowed

Thread ID:





30518 Jun 20,2005 09:01 AM UTC Jun 20,2005 01:20 PM UTC WinForms 2
Tags: GridControl
Administrator [Syncfusion]
Asked On June 20, 2005 09:01 AM UTC

I''ve implemented a custom TreeCell based on the sample Windows\Grid.Windows\Samples\In Depth\VirtTreeGrid GridControl.ListBoxSelectionMode = SelectionMode.MultiExtended, the TreeCellRenderer is derived from TextBoxCellRenderer, the indent of a treenode is viewed simply setting style.BorderMargins.Left and I paint the +- images before the TextBox''s left margin. Problem is, that clicking on the +- image doesn''t always trigger OnClick() event: if the row is selected, I must click 2 times but if I wait on the row, the cursor transforms to "mousearrow + rectangle" (denoting StartDrag???) and in this case I must click 3 times in order to have an OnClick() event. Help!

Administrator [Syncfusion]
Replied On June 20, 2005 09:52 AM UTC

That sample uses the renderer.OnMouseDown to manage the click on the cell. Have you using that method to manage your +/- click?

Administrator [Syncfusion]
Replied On June 20, 2005 01:20 PM UTC

No, the sample uses the OnMouseClick() event. OnMouseDown() is used for the right button (to view the context menu). (Interestingly for the left button the OnMouseDown() method won''t be called in the sample!) Now I''ve found that the Drag&Drop logic of GridControl swallows this event. If I (and the sample does it!) set Me.ControllerOptions = (Me.ControllerOptions And Not (GridControllerOptions.OleDataSource)) then everything worx fine!


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

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