回复 3楼gengwh的帖子
gengwh 你好,
请问你那边如果不弹出框,还会卡么?
- private void clearRangeToolStripMenuItem_Click(object sender, EventArgs e)
- {
- Stopwatch st = new Stopwatch();
- st.Start();
- fpSpread1.SuspendLayout();
- fpSpread1.Sheets[0].ClearRange(0, 0, 500, 24, false);
- fpSpread1.ResumeLayout();
- st.Stop();
- //MessageBox.Show(st.Elapsed.ToString());
- }
- private void setDataToolStripMenuItem_Click(object sender, EventArgs e)
- {
- DataTable dt = new DataTable();
- for (int i = 1; i < 25; i++)
- {
- dt.Columns.Add("第" + i.ToString() + "列");
- }
- for (int i = 0; i < 500; i++)
- {
- dt.Rows.Add("test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test", "test");
- }
- this.fpSpread1.DataSource = dt;
- }
复制代码 |