Adding rows to a datagridview - Visual Basic .NET

Tags: VB.NET, VB 2008, VB 2010, VB 2012, VB 2013

The following code is used to add rows to datagridview

The example is used to add rows to a datagridview that has 2 columns:

Dim row As String() = New String() {"text1", "text2"}
DataGridView1.Rows.Add(row)


Share This

Home | About | Contact | Privacy Policy

Copyright visual-basic-tutorials.com 2017 - All Rights Reserved.