gridView1.DataSource = null;
gridView1.DataBind();
===============
this.dataGridView1.Rows.Clear();
=============
dataGridView1.Rows.Clear();
-------------------
((DataTable)dataGridView1.DataSource).Rows.Clear();
***************************
------------
dataGridView1.Rows.Clear();
dataGridView1.Refresh();
-------------
No comments:
Post a Comment