Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
System.Data.DataViewオブジェクトがありますが、「responseTime」という列でソートされた最初の10個のレコードのみが必要です。
DataView dv = Factory.GetDataView("something"); dv.Sort = "responseTime desc"; // now what?
.NET 3.5 を使用している場合は、LINQ クエリを使用できます。何かのようなもの:
var query = (dv select 行の行から).Take(10)