Dynamically bind to a datagrid ?

Dynamically bind to a datagrid ?

Post by verane.cha » Fri, 07 Jan 2005 22:25:54


Hi again,

I have another question...
I have some business classes that contains some fields, and I know
only at run time which fields of those business classes I have to
display on my grid (it depends on user choices, and I can have fields
coming from different business classes to display in the same grid).

Is it possible to bind dynamically the selected fields to a datagrid ?


Regards,
Verane.
 
 
 

Dynamically bind to a datagrid ?

Post by J. Jone » Fri, 07 Jan 2005 23:50:39


Look at the DataView class and see if it meets your needs.

 
 
 

Dynamically bind to a datagrid ?

Post by Grant Fris » Sat, 08 Jan 2005 09:40:05

You probably need to look at a 3rd party list view or grid control to
get this functionality. Most of these will also provide the ability
to allow the user to select the columns to be displayed and customize
their location, size etc.

My company (Infralution) has a product (VirtualTree - a combined
Tree/ListView control) that would meet you needs for this - but there
are many others - so you should probably find one that fits your needs
and price.


Grant Frisken
Infralution
www.infralution.com