/// <summary> /// Gets called when combob selection changes /// </summary> /// <param name="sender"></param> /// <param name="args"></param> void ComboSelectionChanged(object sender, RadRoutedEventArgs args) { RadComboBox comboBox = (RadComboBox)args.OriginalSource; var row = comboBox.ParentOfType <GridViewRow>(); if (row != null) { FairValueData data = row.DataContext as FairValueData; if (comboBox.SelectedValue != null) { if (data.DataId != Convert.ToInt16(comboBox.SelectedValue)) { data.DataId = Convert.ToInt16(comboBox.SelectedValue); data.Measure = comboBox.Text; DataContextFairValueComposition.EditedMeasurePropertyFairValueRow = data; } } } }