Saturday, September 29, 2012

Rows of List Box

The List Box allows lookup value selection from a scrolling box with a list of values. For example, the Employee Last Name field in Orders edit form has been configured as a List Box.

Employee Last Name lookup field configured as a List Box with 5 rows.

By default, there are 5 options displayed in the List Box at one time. This number can be changed using the Rows property.

Start the Project Designer. In the Project Explorer, switch to the Controllers tab and double-click on Orders / Views / editForm1 / c1 – Orders / EmployeeID node.

EmployeeID data field node in view 'editForm1' of Orders controller in the Project Explorer.

Change the Rows property:

Property New Value
Rows 8

Press OK to save the data field. On the toolbar, press Browse.

Navigate to the Orders page, and edit a record. The Employee Last Name list box is now longer and displays more items at one time.

Employee Last Name lookup field configured as a List Box with 8 rows.

No comments:

You can find more about Code OnTime Generator, Data Aquarium Framework, and other great products here.


© 2010 Code OnTime LLC. Intelligent code generation software for ASP.NET. Visit us at http://codeontime.com