Seite 1 von 1

DataGridView: Rows.Add() bei vorhandenem DataSource

Verfasst: 13.02.2013, 21:44
von localhorst

Code: Alles auswählen

Dim dt As New DataTable
Dim nr As DataRow
dt = dgvDataGridWithDataSource.DataSource
nr = dt.NewRow()
nr.Item(1) = "Text für Spalte 1"
dt.Rows.Add(nr)
dgvDataGridWithDataSource.DataSource = dt