protected void grdLoans_ItemCommand(object sender, GridCommandEventArgs e)
        {
            if (e.CommandName == "Edit")
            {
                int id = Convert.ToInt32(e.CommandArgument);
                Session.Add("EditLoanID", id);
                Response.Redirect("default.aspx?page=addstaticloan");
            }
            else if (e.CommandName == "Delete")
            {
                int id = Convert.ToInt32(e.CommandArgument);
                LoansBLL loansBll = new LoansBLL();
                string loanName = Convert.ToString(loansBll.GetLoanByID(id).CodeName);
                loansBll.RemoveLoan(id);

                DAL.Login login = Session["LogedInUser"] as DAL.Login;
                LoanHistory history = new LoanHistory();
                LoanHistoryBL historyBL = new LoanHistoryBL();
                history.Action = "Delete";
                history.LastModified = DateTime.Now;
                history.LoanName = loanName;
                history.UserName = login.Name;
                historyBL.SaveHistory(history);

                RadWindowManager1.RadAlert("Loan removed successfully", 330, 180, "realedge associates", "alertCallBackFn");
            }
            BindLoansData();
        }