Advertisement
Guest User

Untitled

a guest
Jun 18th, 2019
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.34 KB | None | 0 0
  1. dataGridView1.Rows.Clear();
  2. dataGridView1.DataSource = null;
  3. // dataGridView1.DataMember=null;
  4. dataGridView1.DataBindings.Clear();
  5. dataGridView1.RowTemplate.Cells.Clear();
  6. long totalMemory = GC.GetTotalMemory(false);
  7. GC.Collect(0, GCCollectionMode.Forced);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement