检查DataSet的每个列的值是否改变过
public string test()
{
DataSet ds = DsItemInfo.GetChanges();
DataRow dr;
string columsName = "";
string current = "";
string old = "";
string tip = "";
for (int i = 0; i < ds.Tables[0].Rows.Count; i++)
{
dr = ds.Tables[0].Rows[i];
for (int j = 0; j < ds.Tables[0].Columns.Count; j++)
{
columsName = ds.Tables[0].Columns[j].ColumnName;
old = dr[j, DataRowVersion.Original].ToString();
current = dr[j, DataRowVersion.Current].ToString();
if (old != current)
{
tip += columsName + "由" + old + "改为了" + current;
}
}
}
return tip;
}