|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Refreshing datagridviewI have some fields with a button that adds records to an Access db.
The fields get values from the fieleds. In the same window I have a datagrid with a list of the same records from the access db. When I click the button on the form I want to add records as described above and then refresh (requery) the datagrid so I can see the last record added in the datagrid. I have tried to put dgvToDo.Refresh() Me.TblToDoTableAdapter.Fill(Me.DsToDo.tblToDo) with bo luck reidarT Reidar,
I did not try it, but at least would I turn them around, otherwise it makes not much sense. The way this code is placed can make the differens is your DsToDo is renewed, than you need to set the bindings as well. > Me.TblToDoTableAdapter.Fill(Me.DsToDo.tblToDo) Cor> dgvToDo.Refresh() Show quoteHide quote "reidarT" <rei***@eivon.no> schreef in bericht news:edrAMe1nGHA.2432@TK2MSFTNGP03.phx.gbl... >I have some fields with a button that adds records to an Access db. > The fields get values from the fieleds. > In the same window I have a datagrid with a list of the same records from > the access db. > When I click the button on the form I want to add records as described > above and then refresh (requery) > the datagrid so I can see the last record added in the datagrid. > I have tried to put > dgvToDo.Refresh() > Me.TblToDoTableAdapter.Fill(Me.DsToDo.tblToDo) > with bo luck > > reidarT >
Is microsoft awaring VB.Net too hard to maintain?
Class used by multiple threads to write to Table Override Printer Margins (?) text/xml reporting service error Visual Studio .NET 2005 using Web Application Project Retrieving the System date and time settings WEB ENABLING a win application: best approach Creating an array of objects when the object type is not known at design time DataGridView column sort avoiding - File download-security warning window when using response.writefile(filepath) |
|||||||||||||||||||||||