I have a DataGrid that its source is DB based. the code is not in MVVM.

Now, i need the DataGridComboBoxColumn source to changed based on a different DataGridComboBoxColumn value thats in the same DataGrid- I'm sure there is a simple solution, but still, couldnt figure it out- how do i do that?

My code:

XAML:

```
<DataGridComboBoxColumn x:Name="active_idnt_deviceCmb"  SelectedValueBinding="{Binding idnt_linked_io_device}" DisplayMemberPath="correct_idnt_active_logic_device" SelectedValuePath="idnt_active_device" Header="input id" Width="80"></DataGridComboBoxColumn>
    <DataGridComboBoxColumn x:Name="active_device_addressCmb" ElementStyle="{StaticResource MyComboBoxStyle}"  SelectedValueBinding="{Binding idnt_linked_io_device}" DisplayMemberPath="active_device_address" SelectedValuePath="active_device_address" Header="Relay Address" Width="65"><DataGridComboBoxColumn.EditingElementStyle>
            <Style TargetType="{x:Type ComboBox}">
                <EventSetter Event="SelectionChanged" Handler="changeDeviceAddress" />
            </Style>
    </DataGridComboBoxColumn.EditingElementStyle>
</DataGridComboBoxColumn>

```

cs:

```
private void changeDeviceAddress(object sender, SelectionChangedEventArgs e)
{
    HelpDataSet.ACTIVE_IO_DEVICESDataTable dtActiveIo = new HelpDataSet.ACTIVE_IO_DEVICESDataTable();
    var comboBox = sender as ComboBox;

    if (comboBox.SelectedValue != null)
    {
        AppHelp.ActiveIODeviceAdapter.ClearBeforeFill = true;
        AppHelp.ActiveIODeviceAdapter.FillByIdntRelayAddress(dtActiveIo, comboBox.SelectedValue.ToString());
        active_idnt_deviceCmb.ItemsSource = dtActiveIo.DefaultView;
    }
}

```

but it changes the whole column source and not just of the specific cell in the row.