Binding to custom collection - select columns to display
I am trying to bind a datagrid (windows forms environment, VS2003) to a custom collection(not an arraylist) - it works, and I am really happy about it, but when I bind the collection the grid shows all of the additional columns that i don't want displayed.
Now I've read loads of articles about binding database tables (Datasets) to the grid and using the TableStyles collection, however all of these notes are(like i said previously) based on dataset binding.
I have tried creating my own table style based on the name of my collection but it still seems to show all of the data.
I even tried some code from a Frans Bouma's Blog(http://weblogs.asp.net/fbouma/articles/115837.aspx), attempting to create an attribute that would allow me to 'hide' aspects of the object from databinding... that didn't work either....![]()
Anyone got any sample code or ideas of how i can achieve this?
Cheers
Mike (in BindingDesparation!)

