Vb net datagrid not updating

Load 'TODO: This line of code loads data into the 'Accessdbtest Data Set.country' table.

Excel Public Class Form1 Private Sub Form1_Load(sender As Object, e As Event Args) Handles My Base.

Open() Dim dt As New Data Table Dim ds As New Data Set ds. Add(dt) Dim da As New Ole Db Data Adapter(query, con) da.

Close() End Sub Private Sub Button3_Click(sender As Object, e As Event Args) Handles Button3.

Value Dim i As Integer Dim j As Integer xl App = New Excel.

The program gives a message that xl Center is not declared xl Work Sheet. Vertical Alignment = xl Center For i = 1 To Data Grid View1.

Cells(1, 1) = "Republic of the Philippines" //I got a problem in this line of code.

Last modified 01-Sep-2015 18:39