Exemplo n.º 1
0
    protected void grdvwSite_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        // Hndling GridView RowDeleting Event for deleting Row for selected SiteId
        int siteid;

        siteid = Convert.ToInt16(grdvwSite.Rows[e.RowIndex].Cells[0].Text);
        objSite.Delete(siteid);
        // Bind GridView
        BindGrid();
    }