Dim row As Integer = dgvCart.Rows.Count
Dim tb As TextBox() = New TextBox() {txtShipAddress, txtBookName}
dgvCart.Rows.Add()
For i As Integer = 0 To tb.Length - 1
dgvCart(i, row).Value = tb(0)
Next
The error is
"No row can be added to a DataGridView control that does not have columns. Columns must be added first."

New Topic/Question
Reply



MultiQuote



|