private void FillPurchaseOrderLineTab() { vendorList.ItemsSource = Vendors.ToDictionary(x => x.AdministrationCode, y => $"{y.AdministrationCode} - {y.Name}"); vendorList.DisplayMemberPath = "Value"; vendorList.SelectedValuePath = "Key"; var fVendorSelected = Vendors.First(x => x.AdministrationCode == PO.VendorCode); vendorList.SelectedIndex = Vendors.IndexOf(fVendorSelected); //PODescription.SetBinding(PO, "Description"); GLAccountList.ItemsSource = GLAccounts.ToDictionary(x => x.AdministrationCode, y => $"{y.AdministrationCode} - {y.Name}"); ArticleList.ItemsSource = Articles.ToDictionary(x => x.AdministrationCode, y => $"{y.AdministrationCode} - {y.Name}"); WarehouseList.ItemsSource = Warehouses.ToDictionary(x => x.AdministrationCode, y => $"{y.AdministrationCode} - {y.Name}"); VatCodeList.ItemsSource = VatCodes.ToDictionary(x => x.AdministrationCode, y => $"{y.AdministrationCode} - {y.Name}"); CostCenterList.ItemsSource = CostCenters.ToDictionary(x => x.AdministrationCode, y => $"{y.AdministrationCode} - {y.Name}"); CostUnitList.ItemsSource = CostUnits.ToDictionary(x => x.AdministrationCode, y => $"{y.AdministrationCode} - {y.Name}"); ProjectList.ItemsSource = Projects.ToDictionary(x => x.AdministrationCode, y => $"{y.AdministrationCode} - {y.Name}"); purchaseOrderLineGrid.ItemsSource = PO.OrderLines; purchaseOrderLineGrid.CanUserAddRows = true; }