我New了10条空数据在multiRow中,输入后赋值,第十条的最后一个Cell输入后,我想按T
ab能跳到界面的“实行”按钮。
Private Sub mltTekiyo_EnteredCell(ByVal sender As Object, ByVal e As System.EventArgs) Handles mltTekiyo.EnteredCell
If mltTekiyo.EditType = GrapeCity.Win.ElTabelle.EditType.ReadOnly Then Exit Sub
Try
'最大10行
If mltTekiyo.ActivePosition.MRow = 10 Then
mltTekiyo.ActiveMRowIndex = 0
实行按钮.Focus()
Exit Sub
End If
Catch ex As Exception
ShowMessage("A001", String.Empty, ex.Message)
End Try
End Sub
Private Sub mltTekiyo_ShortCutNotifyEnter(ByVal sender As Object, ByVal e As GrapeCity.Win.ElTabelle.MShortcutNotifyEventArgs)
If Me.mltTekiyo.ActiveMRowIndex = 10 Then
实行按钮.Focus()
End If
End Sub在Table上也绑定了
但是我单步调试发现 最后一行Cell的ActiveMRowIndex 为9,Tab后直接到multiRow 的第一个Cell。怎么让他跳到实行按钮呢? |
|