回复 1楼lrjnew的帖子
请问您使用的是 Spread 哪个版本?我使用 Spread 7.0V4,没有重现这个问题。
或者你可以通过关闭动画显示提升性能:
- private void Form1_Load(object sender, EventArgs e)
- {
- DataTable dt = new DataTable();
- for (int i = 0; i < 30; i++)
- {
- dt.Columns.Add("col"+ i.ToString());
- }
- for (int i = 0; i < 100; i++)
- {
- string test=i.ToString();
- 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, test, test, test, test, test, test);
- }
- this.fpSpread1.DataSource = dt;
- this.fpSpread1.AllowRowMove = true;
- this.fpSpread1.AllowRowMoveMultiple = true;
- this.fpSpread1.RowDragMove += fpSpread1_RowDragMove;
- this.fpSpread1.RowDragMoveCompleted += fpSpread1_RowDragMoveCompleted;
- }
- void fpSpread1_RowDragMoveCompleted(object sender, FarPoint.Win.Spread.DragMoveCompletedEventArgs e)
- {
- this.fpSpread1.ResumeLayout();
- }
- void fpSpread1_RowDragMove(object sender, FarPoint.Win.Spread.DragMoveEventArgs e)
- {
- this.fpSpread1.SuspendLayout();
- }
复制代码
为了给你提供更优质的服务,请对本次服务进行评分。我们会认真对待你提出的宝贵意见,谢谢 |