Basically, it would be along the lines of:
DataSet ds=GetDataSet();
DataTable dt=ds.Tables[0];
DataView dv = new DataView(dt, "filter expression", "sort expression",
DataViewRowState.CurrentRows)
return dv;
where "filter expression" would be exactly as you'd write it in a WHERE
clause, and sort expression just as you'd write it in a ORDER BY.
Presumably, you have a better way of expressing the subset you want to
filter on, than "rows 5 thru 11"/
--
--
Truth,
James Curran
[erstwhile VC++ MVP]
Home:
www.noveltheory.com Work:
www.njtheater.com
Blog:
www.honestillusion.com Day Job:
www.partsearch.com
"jensen bredal" <je***********@yahoo.dk> wrote in message
news:uj**************@TK2MSFTNGP12.phx.gbl...
"Ignacio Machin ( .NET/ C# MVP )" <ignacio.machin AT dot.state.fl.us>
wrote in message news:uq*************@TK2MSFTNGP15.phx.gbl... Hi,
What about using a DataView ?
Could you please explain based on the code posted earlier?
JB