Hi leute ich versuche schon seit einer halben ewigkeit in einem DataGridView ein Columm mit einer Combobox zu füllen und werte in die Combobox zu übertragen doch das will irgendwie nicht und in google und hier habe ich auch keine lösung gefunden könnt ihr mir weiter helfen?
VB.NET-Quellcode
- Dim dgvCB As New DataGridViewComboBoxCell
- Try
- Dim o As Integer = 0
- For Each p As Process In Process.GetProcesses()
- If (p.MainWindowTitle <> "") Then
- C1.DataGridView.Rows.Add()
- C1.DataGridView.Rows(o).Cells(0).Value = p.ProcessName
- C2.DataGridView.Rows(o).Cells(1).Value = p.MainModule.FileName
- ' C1 und C2 sind Columns
- For i = 0 To p.Modules.Count - 1
- dgvCB.Items.Add(p.Modules.Item(i).FileName)
- Next
- Dim os As New DataGridViewColumn(dgvCB)
- DataGridView1.Columns.Add(os)
- o = o + 1
- Else
- 'ComboBox1.Items.Add(Prozess.ProcessName)
- End If
- Next p
- Catch ex As Exception
- MsgBox(ex.Message)
- End Try