コード例 #1
0
    protected void GrdIStatus_RowDeleting(object sender, GridViewDeleteEventArgs e)
    {
        objIStatusM.Status_ID   = Convert.ToInt32(((Label)GrdIStatus.Rows[e.RowIndex].FindControl("lblStatus_ID")).Text);
        objIStatusM.Status_Name = ((Label)GrdIStatus.Rows[e.RowIndex].FindControl("lblStatus_Name")).Text;

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

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