How to sort a datagrid binded to an HashTable?

  • Thread starter Pedro Rosas Silva
  • Start date
P

Pedro Rosas Silva

Hi all,

I have a datagrid in an ASP.Net 1.1 web application which is binded to
an HashTable.
The grid has several columns and I want to sort the results by one of
those columns.
Are you aware of any way to do it?

Usually, I perform these sorts by changing the SQL queries behind the
datagrid.
But now I have an HashTable, so I cannot sort the results of the
HashTable.
Please advice.
Thanks.

Best Regards,
Pedro Rosas Silva
 
A

ADN

You could convert your Hashtable to a DataTable via a collection
object or something (not sure if you can do a direct cast), and then
use DataViews to sort your data to display it to the user.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top