标签:des style blog http color java os io
1.添加PopupMenuShowing事件
2.PopupMenuShowing事件中的代码如下:
private void gridView1_PopupMenuShowing(object sender, DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventArgs e) { if (e.MenuType == DevExpress.XtraGrid.Views.Grid.GridMenuType.Column)//判断是否是列标题的右键菜单 { GridViewColumnMenu menu = e.Menu as GridViewColumnMenu; menu.Items.RemoveAt(6);//移除右键菜单中的第7个功能,从0开始 //menu.Items.Clear()清除所有功能 //Items.Add(参数,参数,参数)添加功能 } }
DevExpress gridView列标题右键菜单管理,布布扣,bubuko.com
标签:des style blog http color java os io
原文地址:http://www.cnblogs.com/huangzhenhua/p/3885081.html