Hi,
private
void radGridView1_ContextMenuOpening(object sender, ContextMenuOpeningEventArgs e)
{
if (e.ContextMenuProvider is GridHeaderCellElement)
{
e.ContextMenu =
this.columnContextMenu;
}
else if(e.ContextMenuProvider is GridDataRowElement )
{
GridDataRowElement cell = (GridDataRowElement)e.ContextMenuProvider;
e.ContextMenu =
this.contextMenu;
}
}
I want to open a context menu when user click any where on a prticular Data row.
I also wants the value of all the column in that row.
Let me know which class will be suitable as a context menu provider so that i get all the data in that row and also be able to open the contextMenu..
Povide an example if possible?
Note :- The code in the else-if part is not working properly.