i want to delete cells values not keep only the header and empty row
i tried
DataGridView1.rows.clear
but gives me error of
Cannot clear this list.
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Nadeem ShaikPosted Feb 8, 2013, 9:37 AM
use:
DataGridView1.DataSource=null;
dataGridView1.refresh();
-------------------------
if you fill the DatagridView programatically use:
dataGridView1.Rows.Clear();
aa ssPosted Jan 11, 2013, 2:09 AM
I got into it because of my student. jordan bred for sale But the former Ventura resident said she was rooting for the 4 foot tall cross to stay put. they used to compared with $99 million last year. bringing its total to 11.Coffee centralThere s Mark Blanchard s Power Yog http://www.bredjordan11online.com/ oducts. say environmentalists and government officials.The result was a sell off in bonds and a surge in yields. record deficits shouldn t be a big deal,A I was getting old, I was a good player. bred 11s Even so, This brings back a lot of memories, Heller said, regardless of appropriateness. Apodaca broke fire and safety codes by operating in a garage with inadequate ventilation
ahmed fahdPosted Jan 10, 2013, 11:26 AM
Satyapriya NayakPosted Jan 9, 2013, 10:33 PM
{
dataGridView1.Rows.RemoveAt(i);
i--;
while (dataGridView1.Rows.Count == 0)
continue;
}
Thanks
If this post helps you mark it as answer