C1.Win.C1FlexGrid Namespace > C1FlexGridBase Class : BeginUpdate Method |
'Declaration
Public Overrides Sub BeginUpdate()
'Usage
Dim instance As C1FlexGridBase instance.BeginUpdate()
public override void BeginUpdate()
public: void BeginUpdate(); override
void UpdateGrid(C1FlexGrid flex) { try { flex.BeginUpdate(); // suspend painting to avoid flicker flex.Rows.Count = 1; for (int i = 1; i < 10000; i++) flex.AddItem("Row " + i.ToString()); } finally { flex.EndUpdate(); // always restore painting } }
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2