private void BindDataByName() { var InventorysBySearched = StockInService.GetInventoryListByName(txtBatch.Text.Trim()); dgvInventory.DataSource = InventorysBySearched; }