ChrisMayhew
Member
- Joined
- Apr 2, 2009
- Messages
- 12
- Programming Experience
- 1-3
Hello
I am currently working on a project that I load all the required data at the start of the program out of a database into a Data Set however the content updates while using the program.
So for example I have a number that will be updating on a regular basis while the program is running and I want to be able to re-sort the data in Descending order so that the largest number will appear on the top when the form with that data on it loaded.
Currently I have labels on the page that have the data being displayed (tried the data grid views and I don't like them) but I can't get the dataset to re-sort in descending order unless I save the data set to the database and then re-load the program.
So is there anyway I can sort the data thats already in a dataset.
I found this but it didn't work.
Thanks,
Chris
I am currently working on a project that I load all the required data at the start of the program out of a database into a Data Set however the content updates while using the program.
So for example I have a number that will be updating on a regular basis while the program is running and I want to be able to re-sort the data in Descending order so that the largest number will appear on the top when the form with that data on it loaded.
Currently I have labels on the page that have the data being displayed (tried the data grid views and I don't like them) but I can't get the dataset to re-sort in descending order unless I save the data set to the database and then re-load the program.
So is there anyway I can sort the data thats already in a dataset.
I found this but it didn't work.
VB.NET:
DS.Tables("tblUsers").Select(False, "DPoints", DataViewRowState.CurrentRows)
Thanks,
Chris