Good day all,
I am attempting to add data from two text boxes to the next empty cells in two specified columns of a DGV via a button click.
Example
I want to add data from two text boxes to the first two empty cells in columns C2, and C3. How would I define "i" in the below example.
![Name: 2021-03-16_9-02-01.png
Views: 37
Size: 8.3 KB]()
I am still very green when it comes to writing code so please be gentle.
Kind regards,
Jason
I am attempting to add data from two text boxes to the next empty cells in two specified columns of a DGV via a button click.
Example
I want to add data from two text boxes to the first two empty cells in columns C2, and C3. How would I define "i" in the below example.
Code:
DataGridViewMWD(2, i).Value = TextBoxBHADESC.Text
DataGridViewMWD(3, i).Value = TextBoxBHAMUL.Text
I am still very green when it comes to writing code so please be gentle.
Kind regards,
Jason