コード例 #1
0
    protected void GrdIStatus_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        objISeverityM.SeverityID    = Convert.ToInt32(((Label)GrdIStatus.Rows[e.RowIndex].FindControl("lblSeverityID")).Text);
        objISeverityM.Severity_Name = ((Label)GrdIStatus.Rows[e.RowIndex].FindControl("lblSeverity_Name")).Text;

        objISeverityM.IsActive  = Convert.ToBoolean(false);
        objISeverityM.IsDeleted = Convert.ToBoolean(true);
        try
        {
            objISeverityM.SaveSeverityMaster();
            MessageBox("Your record is Deleted");
            BindData();

            PnlISDetails.Visible = true;
            PnlISAdd.Visible     = false;
        }
        catch
        {
        }
    }