B4J Code Snippet Move rows between two TableViews via doubleclick

Discussion in 'B4J Code Snippets' started by KMatle, Apr 4, 2018.

  1. KMatle

    KMatle Expert Licensed User

    With this two subs you can move rows very easy between to TableViews by doubleclicking a row. So if you doubleclick a row it is added to the second TV and deleted from the first (and vice versa). The doubleclick is checked by the ClickCount event (= 2 = two clicks = doubleclick).

    Sub CheckedOutItemsTV_MouseClicked (EventData As MouseEvent)
    If EventData.ClickCount = 2 Then
    Dim row() As Object = CheckedOutItemsTV.Items.get(CheckedOutItemsTV.SelectedRow)
    End If
    End Sub

    Sub BillTV_MouseClicked (EventData As MouseEvent)
    If EventData.ClickCount = 2 Then
    Dim row() As Object = BillTV.Items.get(BillTV.SelectedRow)
    End If
    End Sub
    Guga Thome, Mashiane, LucaMs and 2 others like this.
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice