vb6转到dotnet2008,spread2.5转spread7
页面上有两个翻页按钮(前页,次页)
每页显示10行,点击按钮可以实现翻页,也就是显示上10行或下10行,因为现在spread7中TopRow的属性没了,所以不知道怎么来实现
以下是vb6的前翻页的代码
Private Sub btnPrevPage_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) Handles btnPrevPage.Click
With spdList
.Col = .ActiveCol
.TopRow = IIf(.TopRow < 10, 1, .TopRow - 10)
.Row = .TopRow
.Action = 0
End With
Call SetDisplay()
End Sub
请帮忙解决,谢谢 |
|