The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I have a GDBG which has a context menu, but I want the Context menu to appear only when the user clicks the header row and not for other rows. Currently i''m using the following event:
-------------------------------------------
private void reqgrid_MouseDown(object sender, System.Windows.Forms.MouseEventArgs e)
{
if(e.Button == MouseButtons.Right)
{
int rowIndex=0, colIndex=0;
Point clickPoint = this.reqgrid.PointToClient(Cursor.Position);
Syncfusion.Windows.Forms.Grid.GridRangeInfoList rangeList = null;
if(!this.reqgrid.Selections.GetSelectedRanges(out rangeList, true))
{
this.reqgrid.PointToRowCol(clickPoint, out rowIndex, out colIndex);
this.reqgrid.CurrentCell.Activate(rowIndex, colIndex);
}
this.GridContextMenu.Show(this.reqgrid, clickPoint);
}
}
------------------------------------------------
Please Advice.
Regards,
Osden Pereira
CivilSoft.