Geeks With Blogs
AngelEyes on .Net Tips, tricks and WTFs about Asp .Net, SQL Server and the likes.

DataView dvSortTotalUpdates = new DataView();

dvSortTotalUpdates = dtAllUpdates.DefaultView;

dvSortTotalUpdates.Sort = "UploadDate";

DataTable dtGetBySize = dtAllUpdates.Clone();

for( int i = 0; i < iNumOfRecords; i++ )





return (dtGetBySize);

Posted on Wednesday, January 30, 2008 6:49 PM | Back to top

Comments on this post: Example: how to sort and get top iNumOfRecords from a DataTable, using a DataView

No comments posted yet.
Your comment:
 (will show your gravatar)

Copyright © AngelEyes | Powered by: