protected virtual void OnCellResizeEnd(CellResizeEventArgs e)
 {
     if (CellResizeEnd != null)
     {
         CellResizeEnd(this, e);
     }
 }
Beispiel #2
0
        void col_CellResize(object sender, CellResizeEventArgs e)
        {
            DunaGridHeaderCell resized_col = (DunaGridHeaderCell)sender;

            if (e.CellResizeSide == CellResizeEventArgs.ResizeSide.Left)
            {
                DunaGridHeaderCell prev_resized_col = null; //predchozi

                int index = this.Controls.IndexOf(resized_col);

                if (index > 0)
                {
                    prev_resized_col = (DunaGridHeaderCell)this.Controls[index - 1];
                }

                if (prev_resized_col.IsElastic)
                {
                }
                else
                {
                    prev_resized_col.Width -= prev_resized_col.Location.X + prev_resized_col.Width - resized_col.Location.X;
                }
            }
            else
            {
            }
            if (!this.disable_elastics)
            {
                this.countElasticColumnsWidth();
            }
            this.DeleteColumnGaps();
        }
 protected virtual void OnCellResizeStart(CellResizeEventArgs e)
 {
     if (CellResizeStart != null)
     {
         CellResizeStart(this, e);
     }
 }
Beispiel #4
0
        void col_CellResizeStart(object sender, CellResizeEventArgs e)
        {
            DunaGridHeaderCell cell = (DunaGridHeaderCell)sender;

            if (cell.IsElastic)
            {
                this.disable_elastics = true; //tady to tak jednoduchy nebude
            }
        }
Beispiel #5
0
        void col_CellResizeEnd(object sender, CellResizeEventArgs e)
        {
            if (this.disable_elastics)
            {
                this.disable_elastics = false;

                //spocita nove pomery
            }
        }
Beispiel #6
0
 void col_CellResizeStart(object sender, CellResizeEventArgs e)
 {
     DunaGridHeaderCell cell = (DunaGridHeaderCell)sender;
     if (cell.IsElastic)
     {
         this.disable_elastics = true; //tady to tak jednoduchy nebude
     }
 }
Beispiel #7
0
        void col_CellResizeEnd(object sender, CellResizeEventArgs e)
        {
            if (this.disable_elastics)
            {
                this.disable_elastics = false;

                //spocita nove pomery
            }
        }
Beispiel #8
0
        void col_CellResize(object sender, CellResizeEventArgs e)
        {
            DunaGridHeaderCell resized_col = (DunaGridHeaderCell)sender;

            if (e.CellResizeSide == CellResizeEventArgs.ResizeSide.Left)
            {
                DunaGridHeaderCell prev_resized_col = null; //predchozi

                int index = this.Controls.IndexOf(resized_col);

                if (index > 0)
                {
                    prev_resized_col = (DunaGridHeaderCell)this.Controls[index - 1];
                }

                if (prev_resized_col.IsElastic)
                {

                }
                else
                {
                    prev_resized_col.Width -= prev_resized_col.Location.X + prev_resized_col.Width - resized_col.Location.X;
                }
            }
            else
            {

            }
            if (!this.disable_elastics) this.countElasticColumnsWidth();
            this.DeleteColumnGaps();
        }
 protected virtual void OnCellResizeStart(CellResizeEventArgs e)
 {
     if (CellResizeStart != null)
     {
         CellResizeStart(this, e);
     }
 }
Beispiel #10
0
 protected virtual void OnCellResizeEnd(CellResizeEventArgs e)
 {
     if (CellResizeEnd != null)
     {
         CellResizeEnd(this, e);
     }
 }