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.

  1. Select the Customer Orders Form in design mode.

  2. Click inside the white area of the Content control and press Enter to add an empty line.

  3. 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.

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

  5. Drag an mmLabel from the VS Toolbox and drop it in the first row of the table.

  6. Drag and drop an mmTextBox into the second row of the table.

  7. Click to the right of the mmTextBox and press the space bar.

  8. Drag and drop an mmButton in the second row of the table to the right of the text box.

  9. 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:

  10. Select the mmLabel control, then go to the Properties Window and set its Text property to Customer ID: and its (ID) property to lblCustomerID.

  11. Select the mmTextBox control, then go to the Properties Window and set its (ID) property to txtCustomerID .

  12. Select the mmButton control, then go to the Properties Window and set its (ID) property to btnGetOrders and its Text property to Get Orders.

  13. 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/25/18
Comment or report problem with topic