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

Identify a column on right clicking on the column's header

Thread ID:





115622 Jan 27,2014 12:22 PM UTC Jan 29,2014 05:25 AM UTC WinForms 1
Tags: Grouping
Asked On January 27, 2014 12:22 PM UTC


I have a GridGroupingControl. I would like to do a custom action with the column, say a custom "hide column".

There is a way to identify the column name when right clicking (I display a context menu by the way) on the column's header or cell?

I have a ContextMenuStrip_Opening, but it does not bring any info about the column.
I have also myGrid_TableControlCellClick but this one action only on the cell and only on the left click...

Anish George [Syncfusion]
Replied On January 29, 2014 05:25 AM UTC

Hi Serhio,


Thank you for using Syncfusion products.


We would like to let you know that we can get the current column index while right clicking by using the following code snippet.



this.gridGroupingControl1.TableControlMouseDown += new GridTableControlMouseEventHandler(gridGroupingControl1_TableControlMouseDown);

void gridGroupingControl1_TableControlMouseDown(object sender, GridTableControlMouseEventArgs e)


if (e.Inner.Button == System.Windows.Forms.MouseButtons.Right)


GridCurrentCell cc = this.gridGroupingControl1.TableControl.CurrentCell;





Please let us know if you need any further assistance.





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