Posts By Category

Posts By Date

Resources:

C# Books
ASP.NET Books DotNet4All








If you like to support this site, feel free to make a donation to support improvements.

Thank you!

Monetize Your Blog

A way to achieve secondary for DataTable in C#

I recently stumbled across the following C# code that allows sorting and filtering rows in a DataTable using DataTable.Select method:

http://authors.aspalliance.com/olson/methods/FilterSortData.aspx

However, what I needed was to sort on a primary column, then if DataRows had the same value for the primary column, perform a secondary sort based on another secondary column.

Continued...

Copyright © 2007 Yousef Mannaa. All material on this site is copyrighted.
Do not publish or reproduce any of this material without written permission from the Author