PoisonousFish
Member
- Joined
- Jan 24, 2009
- Messages
- 8
- Programming Experience
- 1-3
Okay, I have a datagrid that is bound to a table in a dataset. It works great.
Also when I add a row to the database like so it also works:
Me.GameTableTableAdapter.addrow(gameWon, CType(numGuesses, Byte), userName)
And this does commit to the database. However, I am trying to figure out how to get these changes to reflect in the dataset so that the new data added will show up in the grid so I don't have to refill the dataset like so:
Me.GameTableTableAdapter.FillByTop10(Me.GameDatabaseDataSet.GameTable)
Obiously this is inefficient. Again, thanks in advance.
Also when I add a row to the database like so it also works:
Me.GameTableTableAdapter.addrow(gameWon, CType(numGuesses, Byte), userName)
And this does commit to the database. However, I am trying to figure out how to get these changes to reflect in the dataset so that the new data added will show up in the grid so I don't have to refill the dataset like so:
Me.GameTableTableAdapter.FillByTop10(Me.GameDatabaseDataSet.GameTable)
Obiously this is inefficient. Again, thanks in advance.