Binding to collection property in DataGridViewBinding to collection property in DataGridView
Old forum URL: forums.lhotka.net/forums/t/7472.aspx
flying_monkey posted on Tuesday, August 18, 2009
Hi,
I have a parent object that has a collection that is always only ever 3 or 4 records. I would like to show this collection property as a heading in the data grid view I am using to present my data. Then present the data by providing a string comma delimited list of the couple records in the collection.
Unfortunately when I try and add the column the property doesn't display in the add column window.
Does anyone know a work around to get the collection property in the parent object to display in the Add Column window?
Thanks
ajj3085 replied on Tuesday, August 18, 2009
Databinding isn't setup to handle properties directly on a collection, so it just won't work. You can have code which manually updates the value, but databinding isn't an option here.Copyright (c) Marimer LLC