Jump to content

Database Gridlist sorting


xyzii

Recommended Posts

Posted

So I have made an updates script with database. It adds a rows to a gridlist but it adds from oldest to newest. How can I make it so the newly added updates are first?

Posted

The easiest solution would be to inverse the order which you are collecting from the database by appending ORDER BY x DESC/ASC (replace x with the column name for whatever it is you want to sort by, whether that is ID column or date-added column or whatever.

 

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...