Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > HashTable

Reply
Thread Tools

HashTable

 
 
=?Utf-8?B?dmluYXk=?=
Guest
Posts: n/a
 
      05-23-2005
I am getting the data in a HashTable.

Q ..

Can i bind Hashtable to Datagrid ??

If not..
To which object the HashTable should be converted so i can bind it to
DataGrid ??

Thanks
--
http://pathidotnet.blogspot.com
=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
---------------
 
Reply With Quote
 
 
 
 
Karl Seguin
Guest
Posts: n/a
 
      05-23-2005
Yes, you can bind it.

Why not just try?

Two values will be exposed, the "Key" and the "Value"

DataBinder.Eval(Container.DataItem, "Key")


karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)


"vinay" <> wrote in message
news:A9ACA6F9-E5DB-4C1C-B85D-...
>I am getting the data in a HashTable.
>
> Q ..
>
> Can i bind Hashtable to Datagrid ??
>
> If not..
> To which object the HashTable should be converted so i can bind it to
> DataGrid ??
>
> Thanks
> --
> http://pathidotnet.blogspot.com
> =====
> vInAypAtHi
> o__
> ---_,>/'_------
> (_) \(_)
> ---------------



 
Reply With Quote
 
 
 
 
=?Utf-8?B?dmluYXk=?=
Guest
Posts: n/a
 
      05-23-2005
Karl
Is there a way to Sort HashTable??

Thanks
--
http://pathidotnet.blogspot.com
=====
vInAypAtHi
o__
---_,>/'_------
(_) \(_)
---------------


"Karl Seguin" wrote:

> Yes, you can bind it.
>
> Why not just try?
>
> Two values will be exposed, the "Key" and the "Value"
>
> DataBinder.Eval(Container.DataItem, "Key")
>
>
> karl
>
> --
> MY ASP.Net tutorials
> http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
> http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
> come!)
>
>
> "vinay" <> wrote in message
> news:A9ACA6F9-E5DB-4C1C-B85D-...
> >I am getting the data in a HashTable.
> >
> > Q ..
> >
> > Can i bind Hashtable to Datagrid ??
> >
> > If not..
> > To which object the HashTable should be converted so i can bind it to
> > DataGrid ??
> >
> > Thanks
> > --
> > http://pathidotnet.blogspot.com
> > =====
> > vInAypAtHi
> > o__
> > ---_,>/'_------
> > (_) \(_)
> > ---------------

>
>
>

 
Reply With Quote
 
Karl Seguin
Guest
Posts: n/a
 
      05-24-2005
No.
You can either use a SortedList (which'll sort on the key), create your own
datatable, or put the keys in an array and use Array.Sort()


Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)


"vinay" <> wrote in message
news:C7351836-9C41-4BB3-95A4-...
> Karl
> Is there a way to Sort HashTable??
>
> Thanks
> --
> http://pathidotnet.blogspot.com
> =====
> vInAypAtHi
> o__
> ---_,>/'_------
> (_) \(_)
> ---------------
>
>
> "Karl Seguin" wrote:
>
>> Yes, you can bind it.
>>
>> Why not just try?
>>
>> Two values will be exposed, the "Key" and the "Value"
>>
>> DataBinder.Eval(Container.DataItem, "Key")
>>
>>
>> karl
>>
>> --
>> MY ASP.Net tutorials
>> http://www.openmymind.net/ - New and Improved (yes, the popup is
>> annoying)
>> http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
>> come!)
>>
>>
>> "vinay" <> wrote in message
>> news:A9ACA6F9-E5DB-4C1C-B85D-...
>> >I am getting the data in a HashTable.
>> >
>> > Q ..
>> >
>> > Can i bind Hashtable to Datagrid ??
>> >
>> > If not..
>> > To which object the HashTable should be converted so i can bind it to
>> > DataGrid ??
>> >
>> > Thanks
>> > --
>> > http://pathidotnet.blogspot.com
>> > =====
>> > vInAypAtHi
>> > o__
>> > ---_,>/'_------
>> > (_) \(_)
>> > ---------------

>>
>>
>>



 
Reply With Quote
 
 
 
Reply

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: hashtable or map? (map inserts not behaving as I expect - and I cant find a decent simple example for hashtable) Kai-Uwe Bux C++ 1 12-21-2008 09:25 PM
Problem with hashTable Guillermo Perl 1 03-04-2004 12:43 PM
Type Hashtable not defined diya ASP .Net 1 10-31-2003 06:59 PM
Get Hashtable Object Directly John E ASP .Net 1 10-08-2003 12:40 PM
vbc compilation fails when using Hashtable Jonathan Wolfson ASP .Net 1 06-27-2003 04:40 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57