Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
270
Set focus in CurrentAddRecord?
posted

Hi, I have some questions:

1)how can I set the focus at a cell of CurrentAddRecord?

2)Can I access the KeyDown event of an CurrentAddRecord cell?

3)can I bind an CurrentAddRecord cell?

 

Thanks

 

  • 5
    posted

    #Region "Buttons Navigation"

    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click

    Me.UltraGrid1.ActiveRow.Selected = False

    Me.UltraGrid1.ActiveRow = UltraGrid1.Rows(0)

    Me.UltraGrid1.ActiveRow.Selected = True

    End Sub

    Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click

    If UltraGrid1.ActiveRow.Index = 0 Then

    Me.UltraGrid1.ActiveRow.Selected = True

    Exit Sub

    End If

    Me.UltraGrid1.ActiveRow.Selected = False

    Me.UltraGrid1.ActiveRow = UltraGrid1.Rows(UltraGrid1.ActiveRow.Index - 1)

    Me.UltraGrid1.ActiveRow.Selected = True

    End Sub

    Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click

    If UltraGrid1.ActiveRow.Index = (UltraGrid1.Rows.FilteredInRowCount - 1) Then

    Me.UltraGrid1.ActiveRow.Selected = True

    Exit Sub

    End If

    Me.UltraGrid1.ActiveRow.Selected = False

    Me.UltraGrid1.ActiveRow = UltraGrid1.Rows(UltraGrid1.ActiveRow.Index + 1)

    Me.UltraGrid1.ActiveRow.Selected = True

    End Sub

    Private Sub Button4_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button4.Click

    Me.UltraGrid1.ActiveRow.Selected = False

    Me.UltraGrid1.ActiveRow = UltraGrid1.Rows(UltraGrid1.Rows.FilteredInRowCount - 1)

    Me.UltraGrid1.ActiveRow.Selected = True

    End Sub

    #End Region