ListBox - Data binding


Binding to Enum Binding to Data model
  • Beverages
  • Condiments
  • Confections
  • Dairy Products
  • Grains/Cereals
  • Meat/Poultry
  • Produce
  • Seafood

About this example


ListBox could binding to any collection that implement IEnumerable interface.

ListBox also could bind to any Enum object.

  • Bind(Enum _enum) - Binding to System.Enum object.
  • Bind(string[] values) -Binding to string array.
  • Bind(IEnumerable collection, string dataTextField, string dataValueField) - Binding to IEnumberable collection object and specified the dataTextField and dataValue field.
  • Bind(IEnumerable collection) - Binding to IEnumberable collection T must be implement from INavigation interface.
  • Bind(IEnumerable collection, MapAction mapper) - Binding to collection object and specified the object Mapping delegate.