asp.net - How to filter only first row of dataview -
i have dataview object in asp.net 3.5, , need put filter on in such way keep first row on dataview. i've searched ways this, far no luck. .rowfilter property seems work criteria, , not looking for. need eliminate rows except first one.
in comments can see have statement
dv.table = sourcetable;
just first row
dv.table = (new datarow[] { sourcetable.asenumerable().elementat(0) }).copytodatatable();
Comments
Post a Comment