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

BeginUpdate() public method

Prevents the Table from drawing until the EndUpdate method is called
public BeginUpdate ( ) : void
return void
        public void BeginUpdate()
        {
            if (this.IsHandleCreated)
            {
                if (this.beginUpdateCount == 0)
                    NativeMethods.SendMessage(this.Handle, 11, 0, 0);

                this.beginUpdateCount++;
            }
        }

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::BeginUpdate
Table