use dropdown list in DataForm - DataForm.NET Samples

This example shows how to use dropdown list for a field. It also applies to Combobox, RadioButton List and ListBox controls.

Pick a Theme:

Order IDProduct ID
Unit PriceQuantity
Discount

  Design   Source  
  1. Open DataForm.NET Manager. In DataForm.NET List page, choose Order Details by clicking the link.
  2. In the DataForm.NET Designer on the right hand side, the default tab is DataForm tab.
  3. Click ProductID link to open up DataForm Field Designer window.
  4. Set Control Type to Dropdown List and a section below will show up. If the dropdown list consists of a static collection, click Collection tab and enter items one by one. If the dropdown list is populated by a datasource, then specify Table Name, Data Text Field, Data Value Field, then get SQL Expression which will get the items from database.
  • Click HERE to open up a READ ONLY DataForm.NET Manager.
  • Click HERE to try for yourself.