Binding ArrayList to GridView/DataGrid

N

Neven Klofutar

Hi,

How can I bind ArrayList that contains list of myObjects to
GridView/DataGrid ?

thanx, Neven
 
R

Ray Booysen

Neven said:
Hi,

How can I bind ArrayList that contains list of myObjects to
GridView/DataGrid ?

thanx, Neven
DataGrid.DataSource = myObjects;
DataGrid.DataBind;

Does this not work?
 
N

Neven Klofutar

Hi,

Sorry, I spend 3 hours trying all versions I could find on Google, and then
I remebered that you HAVE TO use properties in order for this to work ...

Everuthing works fine now.

thanx, Neven
 

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

Forum statistics

Threads
473,756
Messages
2,569,540
Members
45,025
Latest member
KetoRushACVFitness

Latest Threads

Top