i'm trying to display a list(of type) in a datagridview.
the datagridview has 2 columns, the 1st is a text column + the 2nd is a checkbox column. the datagridview resizes to the correct size but it doesn't display anything. what am i doing wrong?

vb.net Code:
  1. Public Class Form1
  2.  
  3.     Public Structure record
  4.         Dim lastDatetime As String
  5.         Dim checks As Boolean
  6.     End Structure
  7.     Private records As New List(Of record)
  8.  
  9.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  10.         For x As Integer = -100 To -10 Step 10
  11.             Dim rec As New record
  12.             Dim dt As Date = Now.AddDays(x)
  13.             rec.lastDatetime = dt.ToString
  14.             rec.checks = True
  15.             records.Add(rec)
  16.         Next
  17.         Dim rec1 As New record
  18.         rec1.lastDatetime = Now.ToString
  19.         rec1.checks = False
  20.         records.Add(rec1)
  21.  
  22.         dgv1.DataSource = records
  23.         dgv1.Update()
  24.  
  25.     End Sub
  26.  
  27. End Class