sort DataRowCollection

S

Steve Richter

how do I sort the Rows DataRowCollection of a DataTable?

I have sub classed the DataRow class and added the IComparable
interface:

public class ResultsTableRow : System.Data.DataRow, IComparable
{
public ResultsTableRow( DataRowBuilder builder )
: base( builder )
{
}

If the Rows collection was an array, I could sort Rows like so:
Array.Sort( Table ) ;

but I have not found a Collection.Sort function??

thanks,
-Steve
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top