清空DataGridView

DataTable dt = (DataTable)dgv.DataSource;
dt.Rows.Clear();
dgv.DataSource = dt;

  

posted @ 2017-08-22 15:03  孤夏  阅读(124)  评论(0编辑  收藏  举报