protected virtual void OnCellResizeEnd(CellResizeEventArgs e) { if (CellResizeEnd != null) { CellResizeEnd(this, e); } }
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); } }
void col_CellResizeStart(object sender, CellResizeEventArgs e) { DunaGridHeaderCell cell = (DunaGridHeaderCell)sender; if (cell.IsElastic) { this.disable_elastics = true; //tady to tak jednoduchy nebude } }
void col_CellResizeEnd(object sender, CellResizeEventArgs e) { if (this.disable_elastics) { this.disable_elastics = false; //spocita nove pomery } }
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(); }