I have a dataset as
DataSet oDS;
and I'm populating it with data so that I can read it as
foreach (DataRow oDR in oDS.Tables[0].Rows)
{
...
}
However, I would like to be able to sort the DataSet before reading it all in the foreach statement.
I've tried oDS.Tables[0].Select("","BulletinNumber DESC"
and that hasn't done anything.
Anyone know how I can sort my DataSet on one of its columns?
thanks in advance,
Tim
DataSet oDS;
and I'm populating it with data so that I can read it as
foreach (DataRow oDR in oDS.Tables[0].Rows)
{
...
}
However, I would like to be able to sort the DataSet before reading it all in the foreach statement.
I've tried oDS.Tables[0].Select("","BulletinNumber DESC"
and that hasn't done anything.
Anyone know how I can sort my DataSet on one of its columns?
thanks in advance,
Tim