DataTable 排序

ijwsoft發表於2013-05-15

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)

DataTable 使用sort

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


相關文章