如何在使用分页时将所有行数据从gridview插入到数据库中? [英] How to insert all rows data from a gridview to database when paging is used?
本文介绍了如何在使用分页时将所有行数据从gridview插入到数据库中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个GridView,可以从GridView本身添加客户。我使用的是标准的ASP.Net DataGrid。我的问题是,有没有办法在使用分页时将所有DataRows从GridView插入数据库?
我正在使用ADDButton_Click事件插入所有行。
解决方案
请参阅以下链接。希望它能奏效。
1> http: //www.c-sharpcorner.com/forums/thread/282979/how-to-insert-all-rows-data-from-a-gridview-to-database.aspx [ ^ ]
I have a GridView which adds Customers from the GridView itself. I am using the standard ASP.Net DataGrid. My question is, is there any way to insert all DataRows from a GridView to database when paging is used?
And i am using ADDButton_Click Event to insert all rows.
解决方案
Please refer following Link. hopefully it will work.
1> http://www.c-sharpcorner.com/forums/thread/282979/how-to-insert-all-rows-data-from-a-gridview-to-database.aspx[^]
这篇关于如何在使用分页时将所有行数据从gridview插入到数据库中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文