Example #1
0
    //---------------------------------------Delete ---------------------------------------------------
    protected void GridView1_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        string id = ((Label)(GridView1.Rows[e.RowIndex].FindControl("Lblid"))).Text;

        dm.Id_Factor = decimal.Parse(id);
        ac.Delete(dm);
        GridView1.EditIndex = -1;
        FillGrid();
    }