Esempio n. 1
0
        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
                {
                }
            }
        }
Esempio n. 2
0
 protected void DoShowMenu(GridHitInfo hi)
 {
     if (hi.HitTest == GridHitTest.ColumnButton)
     {
         GridViewMenu menu = new GridViewColumnButtonMenu(this.gbList);
         menu.Init(hi);
         menu.Show(hi.HitPoint);
     }
 }
Esempio n. 3
0
 public void DoShowMenu(GridHitInfo hi, GridView view)
 {
     if (hi.HitTest == GridHitTest.ColumnButton)
     {
         GridViewMenu menu = new GridViewColumnButtonMenu(view);
         menu.Init(hi);
         menu.Show(hi.HitPoint);
     }
 }