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

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s