private void gdv_Patient_PopupMenuShowing(object sender, PopupMenuShowingEventArgs e)
{ if (e.MenuType == GridMenuType.Column)//判断是否是列标题的右键菜单 { GridViewColumnMenu menu = e.Menu as GridViewColumnMenu; menu.Items.Clear();//清除所有功能 } }这样就可以去掉烦人的右键菜单了
本文共 304 字,大约阅读时间需要 1 分钟。
private void gdv_Patient_PopupMenuShowing(object sender, PopupMenuShowingEventArgs e)
{ if (e.MenuType == GridMenuType.Column)//判断是否是列标题的右键菜单 { GridViewColumnMenu menu = e.Menu as GridViewColumnMenu; menu.Items.Clear();//清除所有功能 } }这样就可以去掉烦人的右键菜单了
转载于:https://www.cnblogs.com/yourSixUncle/p/10022137.html