コード例 #1
0
        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);
            }
        }
コード例 #2
0
 protected void DoShowMenu(GridHitInfo hi)
 {
     if (hi.HitTest == GridHitTest.ColumnButton)
     {
         GridViewMenu gridViewColumnButtonMenu = new GridViewColumnButtonMenu(this.gbList);
         gridViewColumnButtonMenu.Init(hi);
         gridViewColumnButtonMenu.Show(hi.HitPoint);
     }
 }
コード例 #3
0
 public void DoShowMenu(GridHitInfo hi, GridView view)
 {
     if (hi.HitTest == GridHitTest.ColumnButton)
     {
         GridViewMenu gridViewColumnButtonMenu = new GridViewColumnButtonMenu(view);
         gridViewColumnButtonMenu.Init(hi);
         gridViewColumnButtonMenu.Show(hi.HitPoint);
     }
 }
コード例 #4
0
        public void RestoreLayout(GridView view, Control control)
        {
            GridViewColumnButtonMenu gridViewColumnButtonMenu = new GridViewColumnButtonMenu(view)
            {
                ParentControl     = control,
                ParentControlName = this._parentControlName
            };

            gridViewColumnButtonMenu.RestoreLayout();
        }