troubleshooting Question

Help with creating new rows in Grid to add data and looping through grid to retreive data in all rows

Avatar of vcharles
vcharles asked on
.NET ProgrammingASP.NETVisual Basic.NET
18 Comments1 Solution424 ViewsLast Modified:

I am using the code below to load my Grid. How do create new rows to add new data and how do I loop through the grid to retreive data in all rows and set its value to a string variable?

For example,

My Grid contains


How do I add USA in a 4th row, afterwars how do set coubtry = BEL,CAN,ESP, USA.

Dim Country As New DataSet
        GridView1.DataSource = Country.Tables(0)
        GridView1.DataMember = "Country"

Jesus Rodriguez
IT Manager

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 18 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 18 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros