Colums.AddRange 慢

Colums.AddRange is to slow

此代码执行需要 15 秒:

this.gridView1.Columns.AddRange(Coloms.ToArray());//the number of Coloms is big

我怎样做才能加快速度?

尝试禁用视觉更新。

this.gridControl1.BeginUpdate();
this.gridView1.Columns.AddRange(Coloms.ToArray())
this.gridControl1.EndUpdate();    

来自the documentation的解释:

After the BeginUpdate method has been called, the currently opened Views are locked, and do not reflect any changes made to their appearance settings. Calling the EndUpdate method unlocks and redraws the Views.