XPTable.Models.Table.EndUpdate C# (CSharp) Method

EndUpdate() public method

Resumes drawing of the Table after drawing is suspended by the BeginUpdate method
public EndUpdate ( ) : void
return void
        public void EndUpdate()
        {
            if (this.beginUpdateCount <= 0)
                return;

            this.beginUpdateCount--;

            if (this.beginUpdateCount == 0)
            {
                NativeMethods.SendMessage(this.Handle, 11, -1, 0);

                this.PerformLayout();

                this.ColumnModel.Columns.RecalcWidthCache();

                if (this.EnableWordWrap)
                {
                    if (autoCalculateRowHeights)
                        this.CalculateAllRowHeights();
                    this.UpdateScrollBars();   // without this the scolling will have been set up assuming all rows have the default height
                }

                this.Invalidate(true);
            }
        }

Usage Example

Beispiel #1
0
 //Giúp refresh dữ liệu
 private static void Cheats(ref Table mytbl)
 {
     mytbl.BeginUpdate();
     mytbl.ColumnModel.Columns.Add(new TextColumn());
     mytbl.EndUpdate();
     mytbl.BeginUpdate();
     mytbl.ColumnModel.Columns.RemoveAt(mytbl.ColumnModel.Columns.Count-1);
     mytbl.EndUpdate();
 }
All Usage Examples Of XPTable.Models.Table::EndUpdate
Table