DataGrid's ItemsSource Binding window empty using LINQ to SQL Classes?

If I remember correctly you have to Add a "Project DataSource" and then simply choose Object.

Up vote 0 down vote favorite share g+ share fb share tw.

I'm using a Microsoft SQL Server database with LINQ to SQL Classes. Everything works well in the code when I make LINQ calls. The only thing missing is that I'd like to bind the ItemsSource property of my DataGrid to my table's collection.

But when I click on the ItemsSource in the property window, there's nothing about that collection. Any idea how to make it appear in it so I could use it? Thanks a lot!

C# .net wpf linq-to-sql itemssource link|improve this question asked Jan 23 '11 at 20:31TomShreds592825 77% accept rate.

Jan 23 '11 at 21:03 Yes I did, but I'd like it to work with the designer. Like I said in my question, when I play with it in the code it works fine. I just wonder what's missing for it to work in the designer.

Thx! – TomShreds Jan 23 '11 at 21:06.

If I remember correctly you have to Add a "Project DataSource" and then simply choose Object. Make sure everything is compiled first.

Thanks, that helped me. I guess so. Now I added my object in the data sources but I can't get the rest of it... How can I use it in the binding panel of my datagrid?

Thx! – TomShreds Jan 24 '11 at 15:27 This to broad form me to help you. I know I've done this but it's some time ago.

– Henk Holterman Jan 24 '11 at 19:03.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions