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

Context menu and ListBoxSelectionMode=MultiExtended

Thread ID:





9930 Jan 16,2004 06:02 PM UTC Jan 16,2004 08:17 PM UTC WinForms 1
Tags: GridControl
Asked On January 16, 2004 06:02 PM UTC

I want a context menu for a GridDataBoundGrid(NOT A GridListControl) which is emulating a listbox. I have no problem displaying this for a single mode, by overriding the mousedown event. However for multiple selection it gets kinda clumsy because : if you right click on item 4 you dont want it to deselect all the other selected rows and highlight that row UNLESS item 4 isnt part of the existing collection of selected rows, in which case you do. Is there any built in functionality for context menus i''m overlooking, or do i need to do the brunt work?

Administrator [Syncfusion]
Replied On January 16, 2004 08:17 PM UTC

You can avoid the right-click from deselecting cells (all the time) by setting this property: this.gridControl1.Model.Options.SelectCellsMouseButtonsMask = MouseButtons.Left If you want a fixed context menu, you can set the Context property on the GridDataBoundGrid. If you the Context menu to vary cell to cell, then you do have to do more work. Here is a KB link. http://www.syncfusion.com/Support/article.aspx?id=10054 There are other ways to do this if this does not serve your needs.


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

Live Chat Icon For mobile
Live Chat Icon