protected void WarehouseGridBind() { iWarehouseClient WarehouseClient = new iWarehouseClient(); try { CustomProfile profile = CustomProfile.GetProfile(); long CompanyID = profile.Personal.CompanyID; List <V_WMS_GetWarehouseDetails> warehouselst = new List <V_WMS_GetWarehouseDetails>(); warehouselst = WarehouseClient.GetWarehouseList(CompanyID, profile.DBConnection._constr).ToList(); warehouselst = warehouselst.Where(w => w.CompanyID == CompanyID).ToList(); grdWarehouseList.DataSource = warehouselst; grdWarehouseList.DataBind(); } catch (System.Exception ex) { Login.Profile.ErrorHandling(ex, this, "Warehouse Master", "MainCustomerGridBind"); } finally { WarehouseClient.Close(); } }