hi
i have hundreds of records in my gridview and im showing 10 records per page....
i have upto 5 columns and i want to sort records records
how will i do it?

gridview will do.

sorry i didn't clarify my problem in first post.

let say i have three columns in my gridview e.g product, price, year what i want to do is if i click on price header it should sort records by showing higher prices towards lower prices i mean descending order.Again if user clicks on price it should sort records in ascending order.
same will be the case with other columns

please help me solve this problem.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.