sort DataRowCollection

  • Thread starter Thread starter Steve Richter
  • Start date Start date
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
 
Back
Top