数据库的表如下:
Year Quarter Amount re
1990 1号 1.1 yes
1990 2号 1.2 yes 1991 1号 2.1 no
1991 2号 2.2 no 1992 1号 3.1 yes
1992 2号 3.2 no我用交叉表取得DataTable:
*** ***** 1990 1991 1992(这些都是字段)
1号 amount 1.1 2.1 3.1
1号 re yes no yes
2号 amount 1.2 2.2 3.2
2号 re yes no no
我把这个DataTable绑定到DataGrid,并在DataGrid中修改某些项,各位大侠,怎么把修改后的数据保存到原来的数据库,因为我去出来的时候用交叉表,所以保存的时候不知怎样保存?项目紧,在线等,谢谢!!
Year Quarter Amount re
1990 1号 1.1 yes
1990 2号 1.2 yes 1991 1号 2.1 no
1991 2号 2.2 no 1992 1号 3.1 yes
1992 2号 3.2 no我用交叉表取得DataTable:
*** ***** 1990 1991 1992(这些都是字段)
1号 amount 1.1 2.1 3.1
1号 re yes no yes
2号 amount 1.2 2.2 3.2
2号 re yes no no
我把这个DataTable绑定到DataGrid,并在DataGrid中修改某些项,各位大侠,怎么把修改后的数据保存到原来的数据库,因为我去出来的时候用交叉表,所以保存的时候不知怎样保存?项目紧,在线等,谢谢!!
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货