[英]Hi,i am using datagridview in winforms, i have load grid using database now i want to clear all the data from grid without removing data from database
I want to clear the loaded Grid without removing data from database is there anyone who can help me?我想清除加载的网格而不从数据库中删除数据有没有人可以帮助我? I have tried following code... ''' this.ProductDataGridView.Rows.Clear();我试过下面的代码......''' this.ProductDataGridView.Rows.Clear(); ProductDataGridView.Refresh(); ProductDataGridView.Refresh(); ''' '''
I want to clear the loaded Grid without removing data from database is there anyone who can help me?我想清除加载的网格而不从数据库中删除数据有没有人可以帮助我? I have tried following code... ''' this.ProductDataGridView.Rows.Clear();我试过下面的代码......''' this.ProductDataGridView.Rows.Clear(); ProductDataGridView.Refresh(); ProductDataGridView.Refresh(); ''' '''
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.