Hi.if your Data is provided By LINQToSQL classes and WPF.you can do following.i assumed that your mainWindow.xaml is :
<Grid>
<ListView x:Name="myListView" Background="Gray" FlowDirection="RightToLeft" Loaded="myListView_Loaded">
<ListView.View>
<GridView AllowsColumnReorder="True" >
<GridView.Columns>
<GridViewColumn Header="ProductName" Width="150" DisplayMemberBinding="{Binding ProductName}"/>
<GridViewColumn Header="Unit Price" Width="100" DisplayMemberBinding="{Binding UnitPrice}"/>
</GridView.Columns>
</GridView>
</ListView.View>
</ListView>
</Grid>
and you must add a LINQTOSqlClasses object to your project and place tables of NorthWind Database on it by Drag and Drop.
your mainWindow.cs is :
private void myListView_Loaded(object sender, RoutedEventArgs e)
{
MainDataContext context=new MainDataContext();
myListView.ItemsSource=context.Products.ToList();
}
GoodLuck.