摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->1.给要更新的数据表定义主键。2.如果DataSet有删除数据行的操作,最好使用DataRow.Delete();DataSet.AcceptChange();而不是DataTable.Rows.Remove(DataRow);3.更新之前 SqlDataAdapterda=newSqlDataAdapter(strSql,conn); SqlCommandBuildercmb=newSqlCo 阅读全文
posted @ 2010-06-25 10:25 Darren.Xiang 阅读(311) 评论(0) 推荐(0) 编辑