Android Question .Net type ComboBox

David Hawkins

Member
Licensed User
Is there a way for a spinner to work similar to a .NET ComboBox works?

B4X:
With ComboBox1
   .DataSource = Nothing
   .DataSource = dt
   .DisplayMember = "company"
   .ValueMember = "companyid"
   .SelectedIndex = -1
End With
I need to be able to select the underlying 'companyid' from the selected dropdown item.
 

David Hawkins

Member
Licensed User
I think I know what you mean. So create a map with 'company' and 'companyid' and use the 'Position' in the Spinner Item_Click event to select the map index to return what I want, does that sound right?
 
Top