What you need to do is create a Refresh method that updates your Data Source and then rebinds to the DataGrid.
Here is an outline of how I would go about it
public partial class MainWindow : Window
{
private List<yourItems> listItems;
public MainWindow()
{
InitializeComponent();
listItems = new List<yourItems>();
Refresh();
}
private void Refresh()
{
listItems = DataAccess.GetData();
DataGridView1.DataSource = listItems;
}
private void button1_click(object sender, EventArgs e)
{
Refresh();
}
}
Hope this helps