locked
mobile:list DataTextField DataValueField RRS feed

  • Question

  • User-1274894954 posted

    I am trying to create a mobile:list control that will function similar to a DropDownList. By that I mean, I want to display a text value in the mobile:list but when the user selects an item, I want to use the value field to process the selection. My entire database is driven from the ID in the value field, not that readable name.

    I am trying to populate the list with the results of a DataReader. The result has two fields, a text value and an associated ID(integer) field. I tried to use the items.add method but it will only accept one string which will act as the text field but not the value field.

    Is there anyway to do this, or am I showing my newbie condition with mobile controls?

    Thanks,

     

    Tuesday, May 9, 2006 4:19 PM

All replies

  • User-1274894954 posted

    One point of clarification:  I need to add DataTextField and DataValueField to the mobile:list control programmatically. I know how to do it in the form but can't seem to do it in the VB code.

     

     

    Tuesday, May 9, 2006 10:13 PM