cbShift.ItemsSource = shifts 'ObservableCollection cbShift.SelectedValuePath = "ShiftId"
Dim cb = TryCast(dgStaff.CurrentColumn.GetCellContent(dgStaff.SelectedItem), ComboBox) If Not cb Is Nothing Then Dim shiftId As Integer = Convert.ToInt32(cb.SelectedValue) per.ShiftId = shiftId End If
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)