hi,

i want to use DataGridView to display the result from 3 textBoxes ?

is it possible to do that ?

Please help

thanks mate,

I should've posted my code first time, sorry about that.

Oky, again me problem is i want to illustrate the result of calculating the amount of payment and the principle and the loan period which i put each of them in a textbox and i want to illustrate the result in DataGridview, and also i want the DataGridview illustrates the result according to the loan period.

and this was my code which it just illustrate the first payment !
Code *****************

Public Class Form1
    Dim p, rn, amount, n, s, peroid, intrest, pamount, count, t, aaa,pamentamount,principleamount,intrestamount ,outstandingbalance As Integer
    'Dim u As Int16
    'Friend WithEvents u As System.Windows.Forms.NumericUpDown







    Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
        Dim z As Integer
       
        
        For z = 0 To NumericUpDown2.Value - 1


            DataGridView1.Item(0, 0).Value = z
            DataGridView1.Rows.Add(NumericUpDown2.Value)

            pamentamount = ((NumericUpDown1.Value * TextBox1.Text) / (1 - (1 + NumericUpDown1.Value) ^ -NumericUpDown2.Value))
            DataGridView1.Item(1, 0).Value = pamentamount

            principleamount = amount * (1 + NumericUpDown1.Value) ^ -(1 + NumericUpDown2.Value - z)
            DataGridView1.Item(2, 0).Value = principleamount

            intrestamount= pamentamount-principleamount
            DataGridView1.Item(3, 0).Value = principleamount

            outstandingbalance = (intrestamount/NumericUpDown1.Value)-principleamount
            DataGridView1.Item(4, 0).Value = principleamount
        Next z


  End Sub

>and this was my code which it just illustrate the first payment !

What did you expect it to do? Do you get any errors?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.