将gridview数据修改为数据库。 [英] modified gridview data to database.

查看:70
本文介绍了将gridview数据修改为数据库。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有gridview绑定数据表。现在我想将数据插入到sql-server数据库中。如果gridview或datatable的任何列包含错误的数据类型值(与数据库列定义不匹配),那么我可以修改gridview中的值。之后我想继续向数据库插入数据。



请帮助我如何处理这个活动。如果有任何不同的方法来检查和插入数据数据表或gridview到数据库,然后请告诉我如何处理这个。

解决方案

http://forums.asp.net/t/1899066.aspx / 1?ASP + NET + C + Display + multiple + row + data + from + database + into + 1 + row + in + gridview [ ^

I have gridview binded with datatable. Now I want to insert data into sql-server database. If any column of gridview or datatable contain wrong datatype value(not matching the database column defination) that time I can modified the value inside gridview. After that I want to continue to inserting data to database.

Please help me how I can handle this activity.If there is any different way to checking and inserting data from datatable or gridview to database, then please give me how i can handle this.

解决方案

http://forums.asp.net/t/1899066.aspx/1?ASP+NET+C+Display+multiple+row+data+from+database+into+1+row+in+gridview[^]


这篇关于将gridview数据修改为数据库。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆