摘要:
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 阅读全文