哈哈。
WinForms中可以尝试使用 SuspendLayout 和 ResumeLayout 方法,并且尽量使用SetValue和SetText,而不是直接使用Value和Text。- private void Form1_Load(object sender, EventArgs e)
- {
- fpSpread1.SuspendLayout();
- for (int i = 0; i < 20; i++)
- {
- fpSpread1.ActiveSheet.SetValue(0, 0, "test");
- }
- fpSpread1.ResumeLayout();
- }
复制代码
Spread Windows Forms 7.0 Product Documentation > Developer's Guide > Managing Data on a Sheet > Improving Performance by Suspending the Layout |