title: Why is this WPF ComboBox not showing the selected value?
body: <pre><code>&lt;CombobBox x:Name="cbo" 
             Style="{StaticResource ComboStyle1}"
             DisplayMemberPath="NAME"
             SelectedItem="{Binding Path=NAME}"
             SelectedIndex="1"&gt;
    &lt;ComboBox.ItemTemplate&gt;
      &lt;DataTemplate&gt;
        &lt;Grid&gt;
          &lt;TextBlock Text="{Binding Path=NAME}"/&gt;
        &lt;/Grid&gt;
      &lt;/DataTemplate&gt;
    &lt;/ComboBox.ItemTemplate&gt;
  &lt;/ComboBox&gt;
  </code></pre>
  
  <p>In the <code>Window</code> <code>OnLoaded</code> event, I wrote the code to set the <code>ItemsSource</code>:</p>
  
  <pre><code>cbo.ItemsSource = ser.GetCity().DefaultView;
  </code></pre>
  
  <p>While loading the window I can see that the initially the the first item is loading but at the same time it clears the displayed item. I am stuck in this scenario and any help is appreciated. </p>
  
  <p>Regards</p>
  
  <p>Kishore</p>