how can I do a databind to arraylist?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I have a arraylist I want to bind him to datagrid how can I do this?
could I get a reference about this or example.
thanks.
 
Hello amos,

Its as simple as this -
_myGrid.DataSource = myList;


But, all the objects on the list must be coherent, meaning the same public
properties exposed, which shall be shown on the grid as columns. Basic thing
is that whatever you want to show on the grid,as columns, should be a public
property. Each object in the list becomes a row.


HTH,
r.
http://codebetter.com/blogs/ranjan.sakalley/
 

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

Back
Top