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.
C#:
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;
this.gridGroupingControl1.TableDescriptor.VisibleColumns.RemoveAt(cc.ColIndex);
}
}
Please let us know if you need any further assistance.
Regards,
Anish