I am just doing the same thing for this function as I do for the search event.
I tried your suggestion, and I still can't get the updated record to display in the datagridview. It just keeps showing the same record, as if I never cleared it.
Code:'clear the datagrid DataGridView1.Rows.Clear() DataGridView1.DataSource = Nothing For i = 0 To coll.Count - 1 DataGridView1.Rows.Add(coll(i).id, coll(i).nbr).ToString() Next 'set the size of the grid DataGridView1.Width = 643 DataGridView1.Height = 160 End Function




Reply With Quote