Link to home
Start Free TrialLog in
Avatar of ugougbor
ugougbor

asked on

How to use rowfilter property of dataview object to fetch last 'n' records

How to use rowfilter property of dataview object to fetch last 'n' records in the dataview (to fetch last 5 records for example)


String str = "string that fetches last 5 records in customView?"

DataView customView = myDataSet.tables["sometable"].DefaultView;
customView.RowFilter = str;

thanks for help!
ASKER CERTIFIED SOLUTION
Avatar of mistaeverly
mistaeverly
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial