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