title: binding list(of class) to datagridview in vb.net
body: <p>I have a class that contains a list of data that gets populated from a datastream. I want to bind that list to a datagridview so it automatically populates  as the list does. However the list isn't refreshing as the data comes in. I have something like this.</p>
  
  <pre><code>Public class MyClass
      Private mData as list(Of networkData)
      Public Property Data() as list(Of networkData)
          Get
              return mData
          End Get
          Set
              mData = value
          End Set
       End Property
          ' some other properties that aren't imporant
          ' stuff to load Data with data from network stream
  end class
  Public class networkDat
      Private rawdata as string
      Public Property rawdata() as string
          Get
              return mrawdata
          End Get
          Set
              mrawData = value
          End Set
       End Property
          ' some other properties that aren't imporant
          ' functions to parse rawdata into the other properties
  End Class
  
  'form
  Public Class dataviewer
      Dim dataView as datagridViewer = new datagridviewer()
      Private Sub dataviewer_load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
           dim x as myClass = new myClass() 'new will start the datastream
           datagridview.datasource = x.Data
      End Sub
  </code></pre>
  
  <p>Since I started the datastream first dataviewer will have an inital set of data. However it doesn't update as new data comes in.</p>