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

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

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