ArrayList of ArrayLists: How to implement IEnumerable

G

Guest

Hi,

I've got a two-dimensional data structure consisting of an ArrayList of ArrayLists.

Since I want to bind the contained data to a DataGrid server control I've implemented the IEnumerable interface. That work's as desired, i.e. the Current property returns the proper item.

But when I bind the data structure to the DataGrid the desired data items don't appear; instead some ArrayList properties appear as column values, e.g. IsReadOnly, IsSynchronized, IsFixedSize, Capacity, etc.

What am I doing wrong?

Many thanks,
P.
 

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,995
Messages
2,570,230
Members
46,819
Latest member
masterdaster

Latest Threads

Top