首页 > 代码库 > GridControl添加右键菜单

GridControl添加右键菜单

DevExpress.XtraGrid.Views.Grid.ViewInfo.GridHitInfo vi =gridView1.CalcHitInfo(e.Location);if (vi.InRow&&e.Button == MouseButtons.Right){     cmsFBF.Show();//ContextMenuStrip
}


注意:是在GridControl里的gridView1.MouseDown事件,而不是GridControl的。

GridControl添加右键菜单