AD
Administrator
Syncfusion Team
August 28, 2006 11:06 PM UTC
Hi Kostya,
You can handle the TableControlMouseDown event instead of TableControlCellClick event and set the context menu on RightClick. The following code snippet demonstrates this technique.
>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
//this.gridGroupingControl1.TableControlMouseDown += new Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlMouseEventHandler(gridGroupingControl1_TableControlMouseDown);
void gridGroupingControl1_TableControlMouseDown(object sender, Syncfusion.Windows.Forms.Grid.Grouping.GridTableControlMouseEventArgs e)
{
if(e.Inner.Button == MouseButtons.Right)
this.contextMenuStrip1.Show(this.gridGroupingControl1, this.gridGroupingControl1.PointToClient(Control.MousePosition));
}
>>>>>>>>>>>>>>>>>>>>>>>>>>>>><<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
Best regards,
Madhan
KB
Konstantin Babiy
August 29, 2006 09:40 AM UTC
Thank you, Madhan, you helped me so much!