public void BindGrid() { iCompanySetupClient TermsClient = new iCompanySetupClient(); try { CustomProfile profile = CustomProfile.GetProfile(); // gvTerm.DataSource = TermsClient.GetTermRecordToBindGrid(profile.DBConnection._constr); gvTerm.DataSource = TermsClient.GetTermsnConditionList(profile.DBConnection._constr); gvTerm.DataBind(); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, " Terms and Conditions Master", "BindGrid"); } finally { TermsClient.Close(); } }