Hi,
I found the code on the LR , to do row dragging between two listboxes.
Dim nRows As Integer
Dim additionalItems As Boolean
For i As Integer = 0 To Me.RowCount - 1
If Me.Selected(i) Then
If Not additionalItems Then
additionalItems = True
Else
drag.AddItem(0, 0, 0, 0)
End If
drag.Text = Me.List(i)
End If
Next
Return True
this is works nicely when the listbox is single-column.
Var ColumnsOnThisRow() As String
for j as Integer=0 to me.ColumnCount-1
ColumnsOnThisRow.Add me.CellTextAt(i,j)
Next
//Now, ColumnsOnThisRow contains all the columns you need.
drag.Text=String.FromArray(ColumnsOnThisRow,Encodings.UTF8.Chr(9)) //Tab-separated values
When I press the tab and change celltextat into cellvalueat is working now.
but it wont stay on proper column.
the text from source listbox both text from column 0 and 1, placed on column 0 separated by tab.
Well, of course you have to do the opposite when receiving the drag. The target listbox must know how to split back the dragged, packaged columns, back to each column.