Update a data to a bounded datagrid view

Tech-Archive recommends: Fix windows errors by optimizing your registry



Hi,

I have a datagridview which bounded to a datatable. When I tried the
to update the grid:
adapter.update(table)

I got the following error:
"Update requires a valid InsertCommand when passed DataRow collection
with new rows"

Is it supposed to grab all the info from the grid without explicitly
coding a new row? What is missing from code. Please help.

Thanks in advance. Your advice would be greatly appreciated.

.



Relevant Pages

  • Re: DataGridView / Celle aktivieren
    ... Im Grid ist eine Liste von Suchzeilen, ... Mir ist immer noch nicht klar, welche Aufgaben deine von den DataGridView-Klassen abgeleiteten Klassen haben. ... Wenn du ein anderes verhalten willst, dann überlade einfach das was auch immer dann das Statement erzeugt. ... nicht ist das DataGridView irgendwie zu benutzen. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: DataGridView / Celle aktivieren
    ... Grid richtig. ... Das was im DataGridView sichtbar ist, ... Die Daten in dieser DataTable sind das Ergebnis ... ist als ein Eventhandler für eben diese Cell-Objekte. ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Re: DataGridView / Celle aktivieren
    ... Ich will über eine Zeile in dem Grid ... für den Benutzer besonders übersichtlich wird. ... eben in erster Linie dafür konzipiert ist, ... DataGridView eben nicht einfach so alleine auf Deiner ...
    (microsoft.public.de.german.entwickler.dotnet.vb)
  • Need Your Opinion!
    ... I'm writting an app that has two DataGridViews, ... and adding the results to the DataGridView like so: ... For Each SelectedRow In Source.SelectedRows ... The data in both grids needs to be kept in ascending order by ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Need Your Opinion!
    ... The grid on the right is the list of "selected" companies to process. ... and adding the results to the DataGridView like so: ... For Each SelectedRow In Source.SelectedRows ... The data in both grids needs to be kept in ascending order by ...
    (microsoft.public.dotnet.languages.vb)