I'm making a program that receive SMS and display to the user, and I'm having a problem with the sort of the data.
For example, if the user sort the table by ids, from the higher id to the lower so when a new SMS arrives it gets on the top of the table, the new sms will get to the bottom of the table anyway.
Here is a screenshot
As you can see, the id 125 is under the 0 instead of being on the top of the table...
Is there any code or event that I should use?
Notice that in this case the ids are going from higher to lower, but the user may want the normal sort from lowers to higher, with that I can't lock the sort in one direction only...
Thank you in advance for your help!