Quantcast
Channel: VBForums
Viewing all articles
Browse latest Browse all 15229

[RESOLVED] Identify first empty cell in specified column DGV

$
0
0
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.

Code:

            DataGridViewMWD(2, i).Value = TextBoxBHADESC.Text
            DataGridViewMWD(3, i).Value = TextBoxBHAMUL.Text

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
Attached Images
 

Viewing all articles
Browse latest Browse all 15229

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>