本文介绍了如何将数据从DataGrid添加到数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
亲爱的,全部 美好的一天 我有一张桌子让我们说
Dear, All Good day I have a table let''s say
Name : Age :并且我需要通过在其上添加一行来放置datagridview,以将此数据添加到数据库中 或将其全部保存为一张.
and I need to put a datagridview by adding a row on it add this data to the database or save all of it as one shot.
推荐答案您可以使用此提示 DataBase-Updation-With-DataGridView You can use this tip DataBase-Updation-With-DataGridView
您可以直接插入到表中,也可以使用临时表插入数据,并在提交按钮上单击按临时表插入到主表",在这种情况下,您可以过滤临时表记录.但是,如果您不打算过滤数据,则将其直接插入数据库. you can insert direct into your table or you can use a temp table for inserting data and on submit button click insert into your main table by temp table in this case you can filter temp tables records. But if you are not going to filter your data then insert it into database directly.
更多推荐
如何将数据从DataGrid添加到数据库
发布评论