Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

importRow-Methode VB.NET

Empfohlene Antworten

Veröffentlicht

Hallo!!!

Ich habe schon wieder ein neues Problem :(

ich will die Datensätze einer Datatable in eine andere Datatable schreiben, ob Sinn oder Unsinn ist jetzt erstmal egal :)

...

dafür habe ich die importRow-Methode gefunden. Im Prinzip läuft das auch alles ohne Fehler ab...ABER

wenn ich die neue DataTable dann anzeigen möchte, erhalte ich zwar eine Zeilenanzahl, aber keine Spalten??

Hier die Import-Anweisung...

 

For Each dr As DataRow In oldDataTable.Rows


            newDataTable.ImportRow(dr)


Next

die datarow (dr) enthält Item-Arrays...diese werden aber nicht als Spalten in der neuen Datatable übernommen??

Gibt es da einen zusätzlichen Trick?? Wäre echt nett, wenn jemand en Rat für mich hätte?? Ich bin nämlich selbst mal wieder total ratlos:rolleyes: :)

  • Autor

Habe das Problem selbst gelöst :)

Ich muss zuerst die Struktur der "alten" Datatable übernehmen (clone-Methode verwenden!)und dann kann ich die Zeilen und Spalten komplett übernehmen.

Also ...echt sehr, sehr einfach ;)

neueDataTable=alteDataTable.clone()

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.