I have problem with updating my datagridview after inserting new data to table. It seems DataSet ,to which datagrid is bound, does not refresh and i cant force it to do so.The only way to refresh dataset is to reset application. I know i can make new DataSet and fill it with table's data every button "Refresh" click ,but i wonder if its simpler way.
I googled a little, but non of these solutions work for me :
- bindingSource1.EndEdit();
- bindingSource1.ResetBindings(false);
- dataGridView1.EndEdit();
- dataGridView1.Refresh();
- dataGridView1.Parent.Refresh();
- dataSet1.GetChanges();
- this.TableAdapter.Fill(this.dataSet1.Table1);
- dataGridView1.Invalidate();
Where the problem lies?