Hello everyone, I have a 3 textbox, how can I transfer the value of the textbox into the datagridView ??? thanks
TextBox to DatagridView
Page 1 of 11 Replies - 194 Views - Last Post: 06 October 2012 - 08:16 PM
Replies To: TextBox to DatagridView
#2
Re: TextBox to DatagridView
Posted 06 October 2012 - 08:16 PM
Here's my code but it has an error is says . "No row can be added to a DataGridView control that does not have columns. Columns must be added first."
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)
Page 1 of 1
|
|

New Topic/Question
Reply



MultiQuote



|