Wrox Home  
Search P2P Archive for: Go

  Return to Index  

aspx_professional thread: Databinding a hashtable to a datagrid


Message #1 by agamble@t... on Wed, 31 Jul 2002 00:29:41
I hve tried using value, but because the value of the hashtable is an 
object of type employee, it justs returns the result of the ToString 
method of the employee class.

I have tried things like value.Name etc but can't seem to get this to work.

Thanks


> Have you tried using a "Value" setting for other HashTable bound columns?

I hope I understood the ? correctly.


Armando Zuniga
Unicomp Technologies Co.
Sugar Land, TX



I have a custom class , for the sake of this example called employee, which
has the standard public properties of name, salary etc etc .

Numerous employee details are held in a hastable which I would like to bind
to a datagrid and display the property values within each employee.

I have no problem displaying the hastable key for each employee as I just
use a boundcolumn with the datafield set to "key".

However, I am struggling to bind to the the employee properties using
either
a bound column or template column.

Is this possible? Would anyone have any ideas on how this can be
acomplished
using either of the two methods above.

Thanks

---

  Return to Index