Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > How to sort a datagrid binded to an HashTable?

Thread Tools

How to sort a datagrid binded to an HashTable?

Pedro Rosas Silva
Posts: n/a
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
But now I have an HashTable, so I cannot sort the results of the
Please advice.

Best Regards,
Pedro Rosas Silva
Reply With Quote
Posts: n/a
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.
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: How include a large array? Edward A. Falk C Programming 1 04-04-2013 08:07 PM
How Determine Binded Column Amar ASP .Net 0 02-25-2004 11:38 AM
Binded Datagrid Formatting columns or hiding columns ton ASP .Net Web Controls 2 02-11-2004 04:09 AM
Ado sort error-Ado Sort -Relate, Compute By, or Sort operations cannot be done on column(s) whose key length is unknown or exceeds 10 KB. Navin ASP General 1 09-09-2003 07:16 AM
Binded DropDown list Mira Vizjak ASP .Net 4 07-16-2003 10:10 AM