public void ShowSuppliers(IEnumerable <SupplierDTO> supplierDtos)
 {
     SupplierResultsGridView.DataSource    = supplierDtos;
     SupplierResultsGridView.EmptyDataText = Constants.EmptyData.SupplierResults;
     SupplierResultsGridView.DataBind();
     SupplierResultUpdatePanel.Update();
     SupplierResultsGridView.EmptyDataText = string.Empty;
 }
        protected void SupplierResultsGridView_SelectedIndexChanged(object sender, EventArgs e)
        {
            var selectedSupplierId = int.Parse(SupplierResultsGridView.DataKeys[SupplierResultsGridView.SelectedRow.RowIndex].Value.ToString());

            using (var partManagementRepository = SharePointServiceLocator.GetCurrent().GetInstance <IPartManagementRepository>())
            {
                if (Request.QueryString[Constants.Sku] != null)
                {
                    //Add Part Supplier
                    string sku = Request.QueryString[Constants.Sku].ToString();
                    partManagementRepository.AddNewPartSupplier(selectedSupplierId, sku);
                    LoadPartSuppliers(sku);

                    //Clear Search Results
                    SupplierResultsGridView.DataSource = null;
                    SupplierResultsGridView.DataBind();
                    SupplierResultUpdatePanel.Update();
                }
            }
        }
 public void Update()
 {
     SupplierResultUpdatePanel.Update();
 }