protected void bindLienholders()
        {
            clientID = Core.SessionHelper.getClientId();

            List <Mortgagee> mortgagees = MortgageeManager.GetAll(clientID).ToList();

            gvMortgagee.DataSource = mortgagees;
            gvMortgagee.DataBind();
        }
        protected void bindMasterLienholders()
        {
            // load lienholders
            clientID = SessionHelper.getClientId();

            List <Mortgagee> mortgagees = MortgageeManager.GetAll(clientID).ToList();

            CollectionManager.FillCollection(ddlMorgagee, "MortgageeID", "MortageeName", mortgagees);
        }
        protected void gv_onSorting(object sender, GridViewSortEventArgs e)
        {
            IQueryable <Mortgagee> clients = MortgageeManager.GetAll(clientID);
            bool descending = false;

            if (ViewState[e.SortExpression] == null)
            {
                descending = false;
            }
            else
            {
                descending = !(bool)ViewState[e.SortExpression];
            }

            ViewState[e.SortExpression] = descending;

            gvMortgagee.DataSource = clients.orderByExtension(e.SortExpression, descending);

            gvMortgagee.DataBind();
        }