BoldSignEasily embed eSignatures in your .NET applications. Free sandbox with native SDK available.
private void gridControl1_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e) { if(e.Button == MouseButtons.Right) { Point clickPoint = gridControl1.PointToClient(Cursor.Position); int rowIndex, colIndex; if(this.gridControl1.PointToRowCol(clickPoint, out rowIndex, out colIndex, -1)) { //make sure there is a selections of some type Syncfusion.Windows.Forms.Grid.GridRangeInfoList rangeList = null; //if no selections or current cell, use the rightclick point if(!gridControl1.Selections.GetSelectedRanges(out rangeList, true)) { gridControl1.CurrentCell.Activate(rowIndex, colIndex); } contextMenu1.Show(gridControl1, clickPoint); } } }