def METHOD_NAME(self):
    import System.Windows.Forms as SWF
    class Form(SWF.Form):
        def __init__(self):
            SWF.Form.__init__(self)
            self._people = people = []
            for name, age, ignored in SAMPLE_DATA:
                people.append(Person(name, age))
            grid = SWF.DataGridView()
            grid.AutoGenerateColumns = True
            grid.DataSource = people
            grid.Dock = SWF.DockStyle.Fill
            self.grid = grid
            self.Controls.Add(grid)
    form = Form()
    def close_form():
        while not form.Visible:
            System.Threading.Thread.Sleep(100)
        System.Threading.Thread.Sleep(1000)
        for i in range(len(SAMPLE_DATA)):
            row = form.grid.Rows[i]
            self.assertEqual(int(row.Cells[0].FormattedValue), SAMPLE_DATA[i][1])
            self.assertEqual(row.Cells[1].FormattedValue, SAMPLE_DATA[i][0])
            self.assertEqual(row.Cells[3].FormattedValue, SAMPLE_DATA[i][2])
        form.Close()
    th = System.Threading.Thread(System.Threading.ThreadStart(close_form))
    th.Start()
    SWF.Application.Run(form)