Your code will not work:
- ListView_CustomerList.SingleLineLayout.Label.Gravi ty = Gravity.RIGHT
It os not necessary to put this line in the For/Next loop, putting it outsides of the loop is enough, because it defines the gravity for all entries.
- ListView_CustomerList.Tag, is the Tag of the ListView and not for each entry!
I would suggest you following code:
Cursor = SQL1.ExecQuery("SELECT * FROM CustomerList")
If Cursor.RowCount > 0 Then
ListView_CustomerList.SingleLineLayout.Label.Gravity = Gravity.RIGHT
For i = 0 To Cursor.RowCount - 1
Cursor.Position = i
ListView_CustomerList.AddSingleLine2(Cursor.GetString("Price") & " ",Cursor.GetString("Makat"))
Next
End If
Cursor.Close
In this case the value in a ListView_ItemClick event will be Cursor.GetString("Makat")
Best regards.