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.
ADAdministrator Syncfusion Team March 2, 2007 12:15 AM UTC
Hi Dhana,
One way you can do this by handling the MouseDown event of the grid and show the context menu when the header is clicked. Please refer to the attached sample for implementation and let me know if this helps.
[C#] private void gridControl1_MouseDown(object sender, MouseEventArgs e) // Enters on Mouse Click Down { if (e.Button == MouseButtons.Right) { GridControl grid = sender as GridControl; int row, col; grid.PointToRowCol(e.Location, out row, out col); if (row != -1 && col != -1) { if( grid.Model[row,col].CellType == "Header") this.contextMenu1.Show(this.gridControl1, e.Location); } } }