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.

Datagridview inhalt aller zellen in einer bestimmten spalte (vb05)

Empfohlene Antworten

Veröffentlicht

hi leute,

hab folgendes Problem:

Ich habe ein Datagridview das ich mit kontaktadressen fülle. Nun will ich das er mir alle inhalte die in der E-Mail Spalte sind in meine beispielsweise Combobox überträgt. Hatte es bisher so das man die e-mails die man braucht per Doppelklick auf die Zelle überträgt, allerdings ist das bei sagen wir 400 mail extrem lästig.


      If DataGridView1.CurrentCell.Value.ToString = "" Then

            Errorfield.Text = "| error you selected an empty cell"

        ElseIf DataGridView1.CurrentCell.Value.ToString.Contains("@") Then

            MsgBox(Me.DataGridView1.CurrentCell.Value & " wurde dem Mailverteiler hinzugefügt", MsgBoxStyle.Information)

            Mailing.ComboBox1.Items.Add(Me.DataGridView1.CurrentCell.Value)

            'Mailing.TextBox2.Text = Mailing.TextBox2.Text & Me.DataGridView1.CurrentCell.Value & ","

        Else

            Errorfield.Text = "| You can only select email Adresses"

        End If

So ist es momentan.

Weiß jetzt aber gar nicht wie ich das wie oben beschrieben machen kann :(

Wäre nice wenn ihr mir da helfen könntet.

Mfg

Simon

Verstehe noch nicht ganz was du machen möchtest. Du hast ne DGV, wo in einer Spalte die Adressen stehen. Jetzt möchtest du die Adressen in einer Combobox anzeigen lassen, richtig? Was ist jetzt genau dein Problem? Das Einfügen in die Combobox? Das geht über Combobox.Items.Add() oder Combobox.Items.AddRange(). Ist dir damit geholfen?

  • Autor

Nein das wust ich auch schon, ich meinte damit eher wie die funktion geschrieben wird um aus einem datagridview eine spalte zu selektieren sowie den value aller zellen der spalte zu selektieren :D .

Hat sich aber schon erledigt. Trotzdem danke

Erstelle ein Konto oder melde dich an, um einen Kommentar zu schreiben.

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.