gridcontrol中使用右健菜单popupMenu1

private void gridView1_ShowGridMenu(object sender, DevExpress.XtraGrid.Views.Grid.GridMenuEventArgs e)
{
Point point = new Point(System.Windows.Forms.Cursor.Position.X, System.Windows.Forms.Cursor.Position.Y);
popupMenu1.ShowPopup(point);
}

你可能感兴趣的:(grid)