I am struggling with this issue: I'm having a MySql database that I show into a listview. Here is my code:
<ListView Name="personsListViewSearch" HorizontalAlignment="Left" Height="234" VerticalAlignment="Top" Width="592" Margin="10,105,-10,-31">
<ListView.View>
<GridView>
<GridViewColumn Header="ID" Width="25" DisplayMemberBinding="{Binding IDPerson}" />
<GridViewColumn Header="Name:" Width="100" DisplayMemberBinding="{Binding Name}" />
<GridViewColumn Header="Surname" Width="160" DisplayMemberBinding="{Binding LastName}" />
<GridViewColumn Header="Phone" Width="150" DisplayMemberBinding="{Binding Phone}" />
<GridViewColumn Header="Email" Width="125" DisplayMemberBinding="{Binding Email}" />
</GridView>
</ListView.View>
</ListView>
I also created a C# code for insert, delete and search, but this is not what I am looking for. I want to be able to (at run time once I have the listview) click or double click on a name of a person, edit the name and after pressing enter, save it automatically to the database. Any idea how to do that?