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 am having a context menu for my Databounddatagrid, I am enabling contextMenu when user clicks on cells which are not static and readonly.
I am doing this in grid_MouseDown event like this
if(e.Button == MouseButtons.Right)
{
if(this.Grid.CurrentCell.ColIndex != 1
&& this.Grid.CurrentCell.ColIndex != 2)
{
Grid.ContextMenu=null;
}
else
{
Grid.ContextMenu=this.cmnuContextMnu;
}
}
here Columns ColIndex 1 & 2 cells are non static.
the above code works fine when i am clicking on static and nonstatic cells but when i click on Columns Headers cells the ContextMenu still popsup, how do i get the RowIndex in mousedown event.
to get the row index(RowIndex = 0 for header row cells), i used cellclick event in which i had placed the above MouseDown event code..but still iam having the problems is there any way i can effectively show the contextmenu only on non static cells. how do desable context menu for header row cells.
---seash