예제 #1
0
        private void splitterControl1_PaneCreated(object sender, Syncfusion.Windows.Forms.SplitterPaneEventArgs e)
        {
            GridControl grid = (GridControl)e.Control;

            grid.CurrentCellMoved += new Syncfusion.Windows.Forms.Grid.GridCurrentCellMovedEventHandler(this.grid_CurrentCellMoved);
            grid.SelectionChanged += new GridSelectionChangedEventHandler(grid_SelectionChanged);
        }
예제 #2
0
        private void tabBar_PaneCreated(object sender, Syncfusion.Windows.Forms.SplitterPaneEventArgs e)
        {
            GridControl           grid   = e.Control as GridControl;
            GridMarkHeadersHelper helper = new GridMarkHeadersHelper(grid);

            helperList.Add(grid, helper);
        }
예제 #3
0
        private void tabBar_PaneClosing(object sender, Syncfusion.Windows.Forms.SplitterPaneEventArgs e)
        {
            GridControl           grid   = e.Control as GridControl;
            GridMarkHeadersHelper helper = this.helperList[grid] as GridMarkHeadersHelper;

            if (helper != null)
            {
                this.helperList.Remove(grid);
                helper.Dispose();
                helper = null;
            }
        }