VB.net Add new row at the end of a DataGridView


I am programatically adding a new row to a DataGridView row using
Me.DataGridView1.Rows.Add("x", "y", "z")  
and it sometimes adds the row on the beginning and sometimes on the end.
This doesn't seem right. Shouldn't it always go on the end?
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAsked:
Who is Participating?
Me.DataGridView1.Rows.Add({"x", "y", "z"})  

Open in new window

Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.