Clear a databound datagridview
If you have bound a datagridview to a datasource, you need to clear the datasource before attempting to remove all the rows.
dgvFunds.DataSource = Nothing
dgvFunds.Rows.Clear()
If you have bound a datagridview to a datasource, you need to clear the datasource before attempting to remove all the rows.
dgvFunds.DataSource = Nothing
dgvFunds.Rows.Clear()
Trackback URI |