you are only deleting the records on the client side, you still need to delete them form the database:da.SelectCommand.CommandText = "Select * From DocTypeInfo";
custCB = new SqlCommandBuilder(da); da.Update(dsDocTypeInfo.Tables[1]);
da.Update(dsDocTypeInfo.Tables[0]);
custCB = new SqlCommandBuilder(da); da.Update(dsDocTypeInfo.Tables[1]);
da.Update(dsDocTypeInfo.Tables[0]);
解决方案 »
- gridview加了table-layout:fixed后出问题???
- ASP.NET+MSSQL2005调试正常运行,发布时报错“ 未将对象引用设置到对象实例化”
- 类型转换的问题
- 求一正则表达式:文本框内只能输入七位数,第一位为1到4的数字,第二位到第七位为日期格式取后六位,如:20060123取:060123,任何一位都可以换
- 如果让form的post的信息回传
- jmail发送邮件的问题
- 关于存储过程的讨论
- DropDownList绑定数据的问题
- 如何取出DataGrid里的某一行里的某一列的值?
- gridview新添加一行怎么保存?
- 请教两个扰人的小问题
- 急!asp.net运行环境配置?
saucer(思归, MS .NET MVP) 你的意思是不是再加下面一句?
da.Update(dsDocTypeInfo.Tables[1]);
我试了,也不行。那位大侠还知道。
思归,就是你说的那样,刚才我把两句写反了,
我先update的table[0]后update的table[1],现在把顺序改一下就可以,谢谢! da.Update(dsDocTypeInfo.Tables[1]);
da.Update(dsDocTypeInfo.Tables[0]);