Dreamweaver

Allow users to edit in DataGrid rows

When creating or editing a DataGrid, use the Edit, Update, Cancel Button column (called the Edit Command Column in ASP.NET) to let users perform in-place editing of information in DataGrid rows. At run time, this column displays a button labeled Edit. When the user clicks the Edit button, the row data is displayed in editable controls such as boxes, and the Edit button is replaced with Update and Cancel buttons.

  1. In the DataGrid dialog box, select the Edit, Update, Cancel Buttons column in the Columns box.
  2. In the Edit, Update, Cancel Buttons dialog box, enter a title for the column.
  3. From the Button Type pop‑up menu, select link or push buttons.

    At run time, this column displays a button labeled “Edit.” Link buttons use text links for the buttons, and push buttons use images.

  4. From the Update Table pop‑up menu, select the database table whose data the user will modify.
  5. From the Primary Key pop‑up menu, select a primary key associated with the table.
  6. Select a data type from the Submit As pop‑up menu, and click OK.