Dreamweaver

Allow users to delete a row in a DataGrid

When creating or editing a DataGrid, use the Delete Button (called aButton Columnin ASP.NET) to let a user delete a particular row by clicking a button.

  1. In the DataGrid dialog box, select the Delete Button column in the Columns box.
  2. In the Delete Button dialog box, enter a name for the column.
  3. From the Button Type pop‑up menu, select either link or push buttons.

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

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