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);
}
}