yablonka Posted June 1, 2003 Posted June 1, 2003 I'm trying to sort a dataset after I populated it with data using the readxml method. Example: If my XML file looks something like this: <request> <firstname>First_Name</firstname> <lastname>Last_Name</lastname> <dateofbirth>2/10/1979</dateofbirth> <address> <street>Street_Name</street> <zipcode>78212</zipcode> </address> </request> <request> . . . I want the records to be sorted by "dateofbirth". Thank you. Quote
Leaders quwiltw Posted June 1, 2003 Leaders Posted June 1, 2003 You don't sort DataSets, you sort DataTables and DataViews. To do this just set the sort property to "dataofbirth". ie. myDataSet.Tables("myTableName").DefaultView.Sort = "dateofbirth" Quote --tim
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.