Greetings:

I have a DataGridView with several columns, such as year, age, deposits, withdrawals, etc.

There are 13 columns that will not change. The number of rows will vary based on user input from a TextBox and will be based on years, such as 1 to 10 or 1 to x, probably not to exceed 100.

All the data in each of the columns will be generated programatically. For example Age might be calculated as follows:

ClientAge(1) = val(TextBox1.text)

For i = 2 to Years

ClientAge(i) = ClientAge(1) + i

Next i

So if ClientAge(1) = 40 and Years = 10, then I end up with a column of numbers from 40 to 49, or whatever.

How can easily write this one dimensional array to the Age Column in my DataGridView where ClientAge one is in Row 1, ClientAge two is in Row 2, etc.

I know this can be done in a simple loop, but after much reading I can't figure out how to do this.

Any help would be much appreciated. Thanks in advance.

Glenn