示例#1
0
 protected void grdview_RowDeleting(object sender, GridViewDeleteEventArgs e)
 {
     nszillow.clsappprp objprp = new nszillow.clsappprp();
     objprp.appcod = Convert.ToInt32(e.Keys[0]);
     nszillow.clsapp obj = new nszillow.clsapp();
     obj.Delete_Rec(objprp);
     gridBind();
 }
示例#2
0
    protected void grdview_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        nszillow.clsappprp objprp = new nszillow.clsappprp();
        nszillow.clsapp    obj    = new nszillow.clsapp();

        objprp.appcod = Convert.ToInt32(grdview.DataKeys[e.RowIndex].Values[0]);

        obj.Delete_Rec(objprp);

        grdview.EditIndex = -1;
        gridBind();
    }