Binding object properties to datagrid

  • Thread starter Thread starter Tony Maresca
  • Start date Start date
T

Tony Maresca

I'm looking for a basic example that shows
how to bind object properties to a datagrid
(e.g., objects are stored in a collection, and
the grid should show one object per row).

TIA

--
Tony M.
 
Tony,

As long as the properties are public, you should be able to place them
in an implementation of IList and it should just work.

Place your objects in an array, and set the data source of grid to the
array.

Hope this helps.
 

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