您好,
在最新的Spread的8上进行测试,这个问题已经解决了,建议您下载最新的版本进行测试。
http://www.gcpowertools.com.cn/products/download.aspx?pid=12
测试使用的代码:
- For index As Integer = 1 To 5000
- dt.Rows.Add(New Object() {index.ToString(), "1", "0", "乳製品", "ノンアルコール", "酪農ミルク", 21000})
- Next
复制代码
- Private Sub FpSpread1_LeaveCell(ByVal sender As System.Object, ByVal e As FarPoint.Win.Spread.LeaveCellEventArgs) Handles FpSpread1.LeaveCell
- 'Dim i, j As Integer
- 'i = Me.FpSpread1.ActiveSheet.ActiveRowIndex()
- 'j = Me.FpSpread1.ActiveSheet.ActiveColumnIndex()
- 'Me.FpSpread1.SuspendLayout()
- Dim ds As DataSet = createData()
- Select Case Me.FpSpread1.ActiveSheet.SheetName
- Case "Sheet1"
- Me.sht2.DataSource = ds.Tables(2)
- Me.sht3.DataSource = ds.Tables(1)
- End Select
- 'Me.FpSpread1.ResumeLayout()
- '.FpSpread1.ActiveSheet.SetActiveCell(i, j)
- FpSpread1.ActiveSheet.SetActiveCell(e.NewRow, e.NewColumn)
- FpSpread1.ShowActiveCell(VerticalPosition.Nearest, HorizontalPosition.Nearest)
- End Sub
复制代码 |