Monthly Archives: April 2009

WPF ListView Databinding

Here, today, I need to Databind ListView to SQL to LINQ table.

I tried couple of hours and added the correct Databinding to GridColumns too. But no luck. Then, suddenly, it strike, I was assigning the DataContent the Datasource.

Now, it need to be ItemSource template<ListView Name=”lvTopics” Grid.Column=”0″ Grid.Row=”2″ Grid.ColumnSpan=”2″ ItemsSource=”{Binding}”>

Advertisements