chaw12 Posted March 6, 2013 Share Posted March 6, 2013 Hi First, i know how to add column in dataset programmatically. But, I'm having a hard time sorting the Data from the created column in the dataset. Example: Original Data of a DatasetPerson Points Emp1 1Emp2 1Emp1 1 On runtime, Person Points TmpPoints<--- created column during runtime(TmpPoint is Sum by Person)Emp1 1 2Emp2 1 1Emp1 1 2 Now, Also on runtime i want the dataset to sort in Descending order using the TmpPoints. Below should be my desired output. Person Points TmpPointsEmp1 1 2Emp1 1 2Emp2 1 1 Some Hint? Thanks. Link to comment Share on other sites More sharing options...
chaw12 Posted April 16, 2013 Author Share Posted April 16, 2013 Hi, if your using a loop you could do this For each datarow in dataset.tables("").select("","TmpPoints DESC")Next Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now