有两个c1flexgrid ,分别为fg1和fg2 ,当在fg1的单元格中按上或下键时,fg2获得焦点,使用fg2.focus() 后,按上下键,不能移动fg2中的行列
- Private Sub Fg1_KeyDownEdit(sender As Object, e As KeyEditEventArgs) Handles Fg1.KeyDownEdit
-
- If e.KeyCode = Keys.Up Or e.KeyCode = Keys.Down Then
- If e.Col = 0 Then
- Fg2.Focus()
-
- End If
- End If
- End Sub
- Private Sub Fg2_GotFocus(sender As Object, e As EventArgs) Handles Fg2.GotFocus
- Fg2.Select(1, 1)
- End Sub
复制代码
|