1)
dtVariable.DefaultView.Sort="VariableUsed asc";
dtVariable = dtVariable.DefaultView.ToTable();
foreach(DataRow tmpRow in dtVariable.Rows)
{
sbResult.AppendLine(tmpRow["ObjectName"].ToString() + ": VariableUsed=" + tmpRow["VariableUsed"]);
}
2)
http://blog.163.com/qingzi1107@126/blog/static/16958032620114422641653/
http://www.dotblogs.com.tw/tony1534/archive/2009/06/10/8771.aspx
3)
dataTable distinct
http://blog.csdn.net/keenweiwei/article/details/8954520