Ejemplo n.º 1
0
 protected virtual void OnCellResizeEnd(CellResizeEventArgs e)
 {
     if (CellResizeEnd != null)
     {
         CellResizeEnd(this, e);
     }
 }
Ejemplo n.º 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();
        }
Ejemplo n.º 3
0
 protected virtual void OnCellResizeStart(CellResizeEventArgs e)
 {
     if (CellResizeStart != null)
     {
         CellResizeStart(this, e);
     }
 }
Ejemplo n.º 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
            }
        }
Ejemplo n.º 5
0
        void col_CellResizeEnd(object sender, CellResizeEventArgs e)
        {
            if (this.disable_elastics)
            {
                this.disable_elastics = false;

                //spocita nove pomery
            }
        }
Ejemplo n.º 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
     }
 }
Ejemplo n.º 7
0
        void col_CellResizeEnd(object sender, CellResizeEventArgs e)
        {
            if (this.disable_elastics)
            {
                this.disable_elastics = false;

                //spocita nove pomery
            }
        }
Ejemplo n.º 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();
        }
Ejemplo n.º 9
0
 protected virtual void OnCellResizeStart(CellResizeEventArgs e)
 {
     if (CellResizeStart != null)
     {
         CellResizeStart(this, e);
     }
 }
Ejemplo n.º 10
0
 protected virtual void OnCellResizeEnd(CellResizeEventArgs e)
 {
     if (CellResizeEnd != null)
     {
         CellResizeEnd(this, e);
     }
 }