Displaying data in list view by binding with database table Getting the selected row data from list view based on primary key
<ListView x:Name="lvitems" HorizontalAlignment="Left" Height="180" Margin="681,286,0,0" ItemsSource="{Binding Path=Items}" VerticalAlignment="Top" Width="277"> <ListView.View> <GridView> <GridViewColumn Width="50" Header="S\No" DisplayMemberBinding="{Binding Path=id}" /> <GridViewColumn Width="50" Header="Code" DisplayMemberBinding="{Binding Path=Code}" /> <GridViewColumn Width="70" Header="Description" DisplayMemberBinding="{Binding Path=Description}" /> <GridViewColumn Width="50" Header="Rate" DisplayMemberBinding="{Binding Path=Rate}" /> <GridViewColumn Width="50" Header="Empty" DisplayMemberBinding="{Binding Path=Bottles}" /> </GridView> </ListView.View> </ListView>
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)