i have 2 textbox in form1 as Name & Age and one datagridview in another form2 with column as Name & Age.
I want to transfer data form these textbox to datagridview column.
Please tell me the code.

        DataGridView1.Rows(0).Cells(0).Value = form1.name.Text
        DataGridView1.Rows(0).Cells(1).Value = form1.age.Text
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.