Dev GirdView 去掉系统菜单
private void gdv_Patient_PopupMenuShowing(object sender, PopupMenuShowingEventArgs e)
{
if (e.MenuType == GridMenuType.Column)//判断是否是列标题的右键菜单
{
GridViewColumnMenu menu = e.Menu as GridViewColumnMenu;
menu.Items.Clear();//清除所有功能
}
}
这样就可以去掉烦人的右键菜单了