Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- dataGridView1.Rows.Clear();
- dataGridView1.DataSource = null;
- // dataGridView1.DataMember=null;
- dataGridView1.DataBindings.Clear();
- dataGridView1.RowTemplate.Cells.Clear();
- long totalMemory = GC.GetTotalMemory(false);
- GC.Collect(0, GCCollectionMode.Forced);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement