Пример #1
0
    //Delete using the grid so no invalid values are passed to the sql command
    protected void GridView1_SelectedIndexChanged(object sender, EventArgs e)
    {
        //db = new dbHelper();
        string deleteId = GridView1.SelectedRow.Cells[1].Text;

        db.deleteItem(deleteId);
        GridView1.DataBind();
    }