private void gridView1_PopupMenuShowing(object sender, DevExpress.XtraGrid.Views.Grid.PopupMenuShowingEventArgs e)
{
if (e.MenuType == DevExpress.XtraGrid.Views.Grid.GridMenuType.Column)
{
Classlar.ClassDevExpressCntrls.dx_GridPopMn(sender, e);
}
else if (e.MenuType == DevExpress.XtraGrid.Views.Grid.GridMenuType.Row)
{
if (gridView1.RowCount < 1) {return ;}
if (gridView1.FocusedRowHandle < 0) {return ;}
DevExpress.XtraGrid.Menu.GridViewMenu mnu = (DevExpress.XtraGrid.Menu.GridViewMenu)(e.Menu);
DevExpress.Utils.Menu.DXMenuItem menuItemRaporOnizle =
new DevExpress.Utils.Menu.DXMenuItem ("|Raporu Önizle|", new EventHandler(RaporuOnizle));
menuItemRaporOnizle.Tag = e.Menu;
DevExpress.Utils.Menu.DXMenuItem menuItemRaporDizayn =
new DevExpress.Utils.Menu.DXMenuItem("<Rapor Dizayn>", new EventHandler(RaporDizayn)) ;
menuItemRaporDizayn.Tag = e.Menu;
mnu.Items.Add(menuItemRaporOnizle);
mnu.Items.Add(menuItemRaporDizayn);
}
}
Yorumlar
Yorum Gönder