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
85
Trying to skip cells...
posted

I've got a grid set up that's got five columns and only two are editable.  Instead of making my poor user slog through the three fixed cells, I'd like to be able to hop from one to the next.  I tried the following bit of code:

Private Sub grdOpenItems_AfterCellUpdate(sender As Object, e As CellEventArgs) Handles grdOpenItems.AfterCellUpdate

    If Not isLoading Then
        If e.Cell.Column.Key = "Apply-To" Then
            e.Cell.Row.Cells("Amt. Applied").Activate()
            grdOpenItems.PerformAction(UltraGridAction.EnterEditMode)
        End If
    End If
End Sub

..in the hopes that it would allow me to skip the un-editable cells.  No dice.  It just goes to the next cell over as it would if no event code was present.  I've traced through the code and know the .Activate() and PerformAction calls are happening.

Suggestions?

Thanks!

g.

Parents
No Data
Reply
  • 2575
    Offline posted

    Hello G.

    Please take a look into the TabStop property on your UltraGridColumns. You should be able to set that to false to prevent the user activating a cell in that column through tab.

    Please let me know if I can further assist you.

Children