471,342 Members | 1,735 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,342 software developers and data experts.

Help! DataGrid bound to an Arraylist

Hi,

I have a DataGrid that has a DataSource to an ArrayList of Person
objects. The Person object has an ArrayList of strings for phone
numbers.

The DataGrid displays the ArrayList ok - except that it has the child
table links for PhoneNumbers (which I want). But when I click on the
link, I get the following exception:

InvalidOperationException
The 'ID' DataGridColumnStyle cannot be used because it is not
associated with a Property or Column in the DataSource.

How can I correct this? I would like to display a new table with the
list of phone numbers, all using ArrayLists (if possible).

Regards,

paul

Jul 22 '05 #1
0 729

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

9 posts views Thread by Tom | last post: by
6 posts views Thread by wukexin | last post: by
3 posts views Thread by Colin J. Williams | last post: by
7 posts views Thread by Corepaul | last post: by
5 posts views Thread by Steve | last post: by
8 posts views Thread by Mark | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.