Articles in this section

How to show PopupControlContainer on right click without clearing the selections in WinForms GridGroupingControl?

Avoid the selection on the grid


By default, the record can be selected by using mouse left click or right click. In order to show the PopupControlContainer on right click without clearing the previous selections when the ListBoxSelectionMode is enabled in WinForms GridGroupingControl, set the SelectCellsMouseButtonMask property as MouseButtons.Left.

 

C#

//To avoid the selection when right click on the grid
this.gridGroupingControl1.TableModel.Options.SelectCellsMouseButtonsMask = MouseButtons.Left; 

VB

'To avoid the selection when right click on the grid
Me.gridGroupingControl1.TableModel.Options.SelectCellsMouseButtonsMask = MouseButtons.Left

The screenshot below illustrates displaying the pop-up control without clearing the selections.

Show the ListBox selection on right click

Samples:

C#: Showing_PopupContainer

VB: Showing_PopupContainer

 

Conclusion


I hope you enjoyed learning about how to show PopupControlContainer on right click without clearing the selections in WinForms GridGroupingControl.


You can refer to our WinForms GridGroupingControl’s feature tour page to know about its other groundbreaking feature representations. You can also explore our WinForms GridGroupingControl documentation to understand how to present and manipulate data.


For current customers, you can check out our WinForms components from the License and Downloads page. If you are new to Syncfusion, you can try our 30-day free trial to check out our WinForms GridGroupingControl and other WinForms components.


If you have any queries or require clarifications, please let us know in comments below. You can also contact us through our support forumsDirect-Trac, or feedback portal. We are always happy to assist you! 

Did you find this information helpful?
Yes
No
Help us improve this page
Please provide feedback or comments
Comments (0)
Access denied
Access denied