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.
Syncfusion Feedback

Context Menu in Grouping grid control

Thread ID:

Created:

Updated:

Platform:

Replies:

36320 Oct 26,2005 07:21 PM UTC Oct 26,2005 08:58 PM UTC Windows Forms 3
loading
Tags: GridControl
Administrator [Syncfusion]
Asked On October 26, 2005 07:21 PM UTC

I am trying to figure out the best way to do this. I have tried the various mouse down events and ended up settling on TableControlMouseDown since it seems to always be sent, however... I can''t get the row that is selected by the click event properly. I tried the e.TableControl.CurrentCell and tried to use: Point pt = grid.PointToClient(new Point(e.Inner.X, e.Inner.Y)); tableControl.PointToRowCol(pt, out nRow, out nCol); But neither seem correct. Also I want to supress the normal stuff from coming up on a right mouse click (drop down menus, etc). There is not handled type event for this.

Administrator [Syncfusion]
Replied On October 26, 2005 07:39 PM UTC

Here is a forum thread that discusses this issue. http://www.syncfusion.com/Support/forums/message.aspx?MessageID=20103

Administrator [Syncfusion]
Replied On October 26, 2005 08:51 PM UTC

Well that event definitely works much better however the row still isn''t actually selected (ie it doesn''t become the current row). So any menu item code would act on the last selected row and not the row I am clicking on. The menu code is shared with a toolbar so changing it doesn''t really work.

Administrator [Syncfusion]
Replied On October 26, 2005 08:58 PM UTC

Sorry this only happens when I select a preview row, so nevermind:)

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.

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

;