title: "Value does not fall in expected range" List collection and not in Observable collection
body: <p>This is my working code, </p>
  
  <pre><code>private ObservableCollection&lt;User&gt; _Users;
  public ObservableCollection&lt;User&gt; Users 
  { 
       get { return _Users; } 
       set { _Users = value; RaisePropertyChanged(()=&gt; Users); } 
  }
  
  Users = new ObservableCollection&lt;User&gt;();
  for (int i = 1; i &lt;= 10; i++)
  {
      Users.Add(new User()
      {
          ADDRESS_LINE_1 = "Test Address",
          ADDRESS_LINE_2 = "Test Address 2",
          FIRST_NAME = "Test Name " + i,
          SURNAME = "Test surname " +i,
          DATE_OF_BIRTH = DateTime.Now.Date,
          GENDER = "M",
          MOBILE_PHONE_NUMBER = "+1100000",
          EMAIL_ADDRESS = "Test@email.com",
          LAST_MODIFIED = DateTime.Now,
          LOGIN_NAME ="operator.domain.com",
          ItemIndex = Users.Count +1
  
      });
  }
  </code></pre>
  
  <p>earlier i am using </p>
  
  <pre><code>private List&lt;User&gt; _Users;
  public List&lt;User&gt; Users 
  { 
      get { return _Users; } 
      set { _Users = value; RaisePropertyChanged(()=&gt; Users); } 
  }
  
  Users = new List&lt;User&gt;();
  for (int i = 1; i &lt;= 10; i++)
  {
      Users.Add(new User()
      {
          ADDRESS_LINE_1 = "Test Address",
          ADDRESS_LINE_2 = "Test Address 2",
          FIRST_NAME = "Test Name " + i,
          SURNAME = "Test surname " +i,
          DATE_OF_BIRTH = DateTime.Now.Date,
          GENDER = "M",
          MOBILE_PHONE_NUMBER = "+9100000",
          EMAIL_ADDRESS = "Test@email.com",
          LAST_MODIFIED = DateTime.Now,
          LOGIN_NAME ="operator1.domain.com",
          ItemIndex = Users.Count +1
      });
  }
  </code></pre>
  
  <p>and i am continuously getting following exception message, when i try to bind it with datatemplate in xaml</p>
  
  <pre><code>Value does not fall within the expected range. 
  </code></pre>
  
  <p>Stack trace is null :(</p>
  
  <p>In addition, if i take another list variable and add those values to it and then assign  shallow copy of that list to the my above list, the code give me desired result, but again what actually going around.</p>
  
  <p>This is the datatemplate </p>
  
  <pre><code>&lt;DataTemplate&gt;
              &lt;Grid Margin="-8,-10,-8,-10" Background="{Binding ItemIndex, Converter={StaticResource AlternateRowBackgroundConverter}}"&gt;
                  &lt;Grid.ColumnDefinitions&gt;
                      &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
                      &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
                      &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
                      &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
                      &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
                      &lt;ColumnDefinition Width="*"&gt;&lt;/ColumnDefinition&gt;
                  &lt;/Grid.ColumnDefinitions&gt;
                  &lt;Border Grid.Column="0" Style="{StaticResource BorderStyleForAdmin}" Background="{Binding ItemIndex, Converter={StaticResource AlternateRowBackgroundConverter}}"&gt;
                      &lt;StackPanel Orientation="Horizontal"&gt;
                          &lt;!--&lt;Border BorderBrush="Gray" BorderThickness="0.3" Visibility="{Binding IsSelectedItem, Mode=TwoWay, Converter={StaticResource ControlVisibiltyOfSelectedItemInListBox}}"&gt;
                              &lt;TextBlock Text="{StaticResource ArrowGlyph}" Foreground="Black" VerticalAlignment="Center" HorizontalAlignment="Right"&gt;&lt;/TextBlock&gt;
                          &lt;/Border&gt;--&gt;
                          &lt;TextBlock Style="{StaticResource TextBlockCell}" Text="{Binding SURNAME}"&gt;&lt;/TextBlock&gt;
                      &lt;/StackPanel&gt;
                  &lt;/Border&gt;
                  &lt;Border Grid.Column="1" Style="{StaticResource BorderStyleForAdmin}" Background="{Binding ItemIndex, Converter={StaticResource AlternateRowBackgroundConverter}}"&gt;
                      &lt;TextBlock Style="{StaticResource TextBlockCell}" Text="{Binding FIRST_NAME}"&gt;&lt;/TextBlock&gt;
                  &lt;/Border&gt;
                  &lt;Border Grid.Column="2" Style="{StaticResource BorderStyleForAdmin}" Background="{Binding ItemIndex, Converter={StaticResource AlternateRowBackgroundConverter}}"&gt;
                      &lt;TextBlock Style="{StaticResource TextBlockCell}" HorizontalAlignment="Stretch"&gt;
                          &lt;Run Text="{Binding ADDRESS_LINE_1}"&gt;&lt;/Run&gt;&lt;LineBreak&gt;&lt;/LineBreak&gt;
                           &lt;Run Text="{Binding ADDRESS_LINE_2}"&gt;&lt;/Run&gt;
                      &lt;/TextBlock&gt;
                  &lt;/Border&gt;
                  &lt;Border Grid.Column="3" Style="{StaticResource BorderStyleForAdmin}" Background="{Binding ItemIndex, Converter={StaticResource AlternateRowBackgroundConverter}}"&gt;
                      &lt;TextBlock Style="{StaticResource TextBlockCell}" Text="{Binding DATE_OF_BIRTH}"&gt;&lt;/TextBlock&gt;
                  &lt;/Border&gt;
                  &lt;Border Grid.Column="4" Style="{StaticResource BorderStyleForAdmin}" Background="{Binding ItemIndex, Converter={StaticResource AlternateRowBackgroundConverter}}"&gt;
                      &lt;TextBlock Style="{StaticResource TextBlockCell}" Text="{Binding EMAIL_ADDRESS}"&gt;&lt;/TextBlock&gt;
                  &lt;/Border&gt;
                  &lt;Border Grid.Column="5" Style="{StaticResource BorderStyleForAdmin}" Background="{Binding ItemIndex, Converter={StaticResource AlternateRowBackgroundConverter}}"&gt;
                      &lt;TextBlock Style="{StaticResource TextBlockCell}" Text="{Binding MOBILE_PHONE_NUMBER}"&gt;&lt;/TextBlock&gt;
                  &lt;/Border&gt;
              &lt;/Grid&gt;
          &lt;/DataTemplate&gt;
  </code></pre>
  
  <p>Though, Observable collection works for me but i am wondering why List giving me this exception, i am unable to figure out what's the actual reason behind the scene. Thanks in advance.</p>