protected void btnClearRows_Click(object sender, EventArgs e) { GridView1.DataSource = null; GridView1.DataBind(); }
YourGridView.DataSource = null; YourGridView.DataBind();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)