Step 6: Adding Controls to the Customer Orders Form
In this step you will add input controls and a GridView to the Customer Orders Web Form.
- Select the Customer Orders Form in design mode.
- Click inside the white area of the Content control and press Enter to add an empty line.
- From the Visual Studio menu select Table | Insert Table. In the Insert Table dialog:
- Set Rows to 3.
- Set Columns to 1.
- Set Cell padding to 3.

- Click OK to close the dialog. This adds a new, empty table to the Content pane:

- Drag an mmLabel from the VS Toolbox and drop it in the first row of the table.
- Drag and drop an mmTextBox into the second row of the table.
- Click to the right of the mmTextBox and press the space bar.
- Drag and drop an mmButton in the second row of the table to the right of the text box.
- Drag and drop an mmGridView into the third row of the table then press the Esc key to close the smart tag popup. Your Table should now look like this:

- Select the mmLabel control, then go to the Properties Window and set its Text property to Customer ID: and its (ID) property to lblCustomerID.
- Select the mmTextBox control, then go to the Properties Window and set its (ID) property to txtCustomerID .
- Select the mmButton control, then go to the Properties Window and set its (ID) property to btnGetOrders and its Text property to Get Orders.
- Select the mmGridView, then go to the Properties Window and set its (ID) property to grdOrders.
See also:
Step 7: Registering the Order Business Object with the Form
© (c) 2026 Oak Leaf Enterprises, Inc., 1996-2026 • Updated: 04/23/18
Comment or report problem with topic
