private void DoBuyerSearch(string searchString) { string[] args = searchString.Split('~'); var buyerList = SQMModelMgr.SearchBuyerList(entities, SessionManager.ActiveCompany().COMPANY_ID, 0, SessionManager.BuyerSearchCriteria); GridView gv = (GridView)hfBase.FindControl("gvBuyerList"); gv.DataSource = buyerList; gv.DataBind(); SetGridViewDisplay(gv, gv.Rows.Count, "lblBuyerListEmpty"); }