public void DoShowMenu(GridHitInfo hi, GridView view, Control control) { GridViewColumnButtonMenu menu; if (hi.HitTest == GridHitTest.ColumnButton) { menu = new GridViewColumnButtonMenu(view) { ParentControl = control, ParentControlName = this._parentControlName }; menu.Init(hi); menu.Show(hi.HitPoint); } else { try { if ((hi as BandedGridHitInfo).HitTest == BandedGridHitTest.BandButton) { menu = new GridViewColumnButtonMenu(view) { ParentControl = control, ParentControlName = this._parentControlName }; menu.Init(hi); menu.Show(hi.HitPoint); } } catch { } } }
protected void DoShowMenu(GridHitInfo hi) { if (hi.HitTest == GridHitTest.ColumnButton) { GridViewMenu menu = new GridViewColumnButtonMenu(this.gbList); menu.Init(hi); menu.Show(hi.HitPoint); } }
public void DoShowMenu(GridHitInfo hi, GridView view) { if (hi.HitTest == GridHitTest.ColumnButton) { GridViewMenu menu = new GridViewColumnButtonMenu(view); menu.Init(hi); menu.Show(hi.HitPoint); } }