title: NotimplementedException in System.Core.dll
body: <p>I am getting the error below in my code:</p>
  
  <blockquote>
    <p>An unhandled exception of type 'System.NotImplementedException' occurred in >System.Core.dll</p>
    
    <p>Additional information: The method or operation is not implemented.</p>
  </blockquote>
  
  <p>This happens when I try to set the datasource on my datagridview. The error occurs on the TextChanged event on a textbox where I am trying to filter the datagridview based on the input.</p>
  
  <p>The code in the event is as below:</p>
  
  <pre><code>        IEnumerable&lt;b2bHdr&gt; filteredClaims = claims.Where(sc =&gt; sc.claimNumber.ToString().Contains(ntxtClaimNoSearch.Text));
          dgvHdr.DataSource = filteredClaims;
          dgvHdr.AutoResizeColumns();
          if (filteredClaims.Count() &gt; 0)
          {
              dgvDtl.DataSource = filteredClaims;
              dgvDtl.DataMember = "b2bDetails";
              dgvDtl.AutoResizeColumns();
          }
          else
          {
              dgvDtl.DataSource = null;
          }
  </code></pre>
  
  <p>The Error occurs on the line <code>dgvDtl.DataSource = filteredClaims</code></p>
  
  <p>I have searched and can't find anything similar. I would appreciate any help with this.</p>
  
  <p>The definition for b2bhdr is as below:</p>
  
  <pre><code>[Table(Name = "tbl_B2BHdr")]
  public class b2bHdr
  {
      private EntitySet&lt;b2bDtl&gt; _b2bDetails;
      public b2bHdr()
      {
          this._b2bDetails = new EntitySet&lt;b2bDtl&gt;(OnDtlAdded, OnDtlremoved);
      }
  
      private void OnDtlAdded(b2bDtl addedDtl) { addedDtl.hdrRecord = this; }
      private void OnDtlremoved(b2bDtl removedDtl) { removedDtl.hdrRecord = null; }
  
  
      [Association(ThisKey = "bhID", Storage = "_b2bDetails", OtherKey = "bhID")]
      public EntitySet&lt;b2bDtl&gt; b2bDetails
      {
          get { return this._b2bDetails; }
          set { this._b2bDetails.Assign(value); }
      }
  
      [Column(IsPrimaryKey = true, IsDbGenerated = true)] public Int32 bhID { get; set; }
      [Column] public Int32 cusID { get; set; }
      [Column] public int? rtHID { get; set; }
      [Column] public int? inhID { get; set; }
      [Column] public DateTime invoiceDate { get; set; }
      [Column] public DateTime? deliveryDate { get; set; }
      [Column] public Int32 referenceNumber { get; set; }
      [Column] public int? claimNumber { get; set; }
      [Column] public int? CreditInvoice { get; set; }
      [Column] public String CustomerName { get; set; }
      [Column] public Byte Type { get; set; }
      [Column] public Decimal InvoiceTotal { get; set; }
      [Column] public Decimal TaxTotal { get; set; }
      [Column] public Int32 TempID { get; set; }
      [Column] public String Notes { get; set; }
      [Column] public byte? status { get; set; }
      [Column] public Byte Deleted { get; set; }
  </code></pre>
  
  <p>Below is the debug information on the error:</p>
  
  <pre><code>    A first chance exception of type 'System.NotImplementedException' occurred in System.Core.dll
     'sldatasys.exe' (Win32): Loaded 'C:\Windows\Microsoft.NET\Framework64\v4.0.30319\diasymreader.dll'. Cannot find or open the PDB file.
     System.Transactions Critical: 0 : &lt;TraceRecord xmlns="http://schemas.microsoft.com/2004/10/E2ETraceEvent/TraceRecord" Severity="Critical"&gt;&lt;TraceIdentifier&gt;http://msdn.microsoft.com/TraceCodes/System/ActivityTracing/2004/07/Reliability/Exception/Unhandled&lt;/TraceIdentifier&gt;&lt;Description&gt;Unhandled exception&lt;/Description&gt;&lt;AppDomain&gt;sldatasys.exe&lt;/AppDomain&gt;&lt;Exception&gt;&lt;ExceptionType&gt;System.NotImplementedException, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089&lt;/ExceptionType&gt;&lt;Message&gt;The method or operation is not implemented.&lt;/Message&gt;&lt;StackTrace&gt;   at System.Linq.Enumerable.Iterator`1.System.Collections.IEnumerator.Reset()
     at System.Windows.Forms.ListBindingHelper.GetFirstItemByEnumerable(IEnumerable enumerable)
     at System.Windows.Forms.ListBindingHelper.GetListItemPropertiesByEnumerable(IEnumerable enumerable)
     at System.Windows.Forms.ListBindingHelper.GetListItemProperties(Object list)
     at System.Windows.Forms.ListBindingHelper.GetListItemProperties(Object list, PropertyDescriptor[] listAccessors)
     at System.Windows.Forms.BindingContext.EnsureListManager(Object dataSource, String dataMember)
     at System.Windows.Forms.DataGridView.DataGridViewDataConnection.SetDataConnection(Object dataSource, String dataMember)
     at System.Windows.Forms.DataGridView.set_DataSource(Object value)
     at DairyProcessing.frmB2BView.btnClearClaimSearch_Click(Object sender, EventArgs e) in c:\Data\Projects\Stonelees Data Systems\Stonelees Data Systems\Forms\frmB2BView.cs:line 223
     at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
     at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp;amp; m, MouseButtons button, Int32 clicks)
     at System.Windows.Forms.Control.WndProc(Message&amp;amp;amp; m)
     at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp;amp; m)
     at System.Windows.Forms.Button.WndProc(Message&amp;amp;amp; m)
     at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp;amp; msg)
     at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
     at DairyProcessing.Program.Main() in c:\Data\Projects\Stonelees Data Systems\Stonelees Data Systems\Program.cs:line 19&lt;/StackTrace&gt;&lt;ExceptionString&gt;System.NotImplementedException: The method or operation is not implemented.
     at System.Linq.Enumerable.Iterator`1.System.Collections.IEnumerator.Reset()
     at System.Windows.Forms.ListBindingHelper.GetFirstItemByEnumerable(IEnumerable enumerable)
     at System.Windows.Forms.ListBindingHelper.GetListItemPropertiesByEnumerable(IEnumerable enumerable)
     at System.Windows.Forms.ListBindingHelper.GetListItemProperties(Object list)
     at System.Windows.Forms.ListBindingHelper.GetListItemProperties(Object list, PropertyDescriptor[] listAccessors)
     at System.Windows.Forms.BindingContext.EnsureListManager(Object dataSource, String dataMember)
     at System.Windows.Forms.DataGridView.DataGridViewDataConnection.SetDataConnection(Object dataSource, String dataMember)
     at System.Windows.Forms.DataGridView.set_DataSource(Object value)
     at DairyProcessing.frmB2BView.btnClearClaimSearch_Click(Object sender, EventArgs e) in c:\Data\Projects\Stonelees Data Systems\Stonelees Data Systems\Forms\frmB2BView.cs:line 223
     at System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
     at System.Windows.Forms.Control.WmMouseUp(Message&amp;amp;amp; m, MouseButtons button, Int32 clicks)
     at System.Windows.Forms.Control.WndProc(Message&amp;amp;amp; m)
     at System.Windows.Forms.ButtonBase.WndProc(Message&amp;amp;amp; m)
     at System.Windows.Forms.Button.WndProc(Message&amp;amp;amp; m)
     at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
     at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG&amp;amp;amp; msg)
     at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(IntPtr dwComponentID, Int32 reason, Int32 pvLoopData)
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
     at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
     at DairyProcessing.Program.Main() in c:\Data\Projects\Stonelees Data Systems\Stonelees Data Systems\Program.cs:line 19&lt;/ExceptionString&gt;&lt;/Exception&gt;&lt;/TraceRecord&gt;
     An unhandled exception of type 'System.NotImplementedException' occurred in System.Core.dll
     Additional information: The method or operation is not implemented.
  </code></pre>