private void TxtSearch_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Enter) { var item = UcTechSpecGrid.Search(UcTechSpecGrid.txtSearch.Text)?.FirstOrDefault(); if (item == null) { return; } TechSpecDetails.Details(item); lblPODescription.Text = item.TechSpecsId; ucTSEquipmentProfiles1.Details(item.Id, "TechSpecs"); this.DocumentBindingSource.DataSource = new UnitOfWork().DocumentsRepo.Get(m => m.RefId == item.Id && m.TableName == "TechSpecs"); LoadActions(); } }