I've seen a number of people bringing up this issue on the VB.NET 2010 but none of the suggestions end up working for me.
I fill the DataGridView manually using DataGridView1.DataSource = dt
but when I want to clear the Grid to enter more data, using some combination of the following:
dt.Clear()
DataGridView1.DataSource = Nothing 'Generates an error
DataGridView1.Columns.Clear 'Generates an error
DataGridView1.Rows.Clear()
DataGridView1.DataBindings.Clear() cannot clear this list
and myriad other suggestions I have not listed here.
I'm sure there is some combination to do this successfully. Any suggestions?
Thanks
I fill the DataGridView manually using DataGridView1.DataSource = dt
but when I want to clear the Grid to enter more data, using some combination of the following:
dt.Clear()
DataGridView1.DataSource = Nothing 'Generates an error
DataGridView1.Columns.Clear 'Generates an error
DataGridView1.Rows.Clear()
DataGridView1.DataBindings.Clear() cannot clear this list
and myriad other suggestions I have not listed here.
I'm sure there is some combination to do this successfully. Any suggestions?
Thanks