Public Class Form1 Private Sub Button1_Click(sender As Object, e As EventArgs) Handles Button1.Click Dim pxy As localhost.Service1 = New localhost.Service1() Dim ds As DataSet = New DataSet() 'Retrieve the data from the database using the GetCustomers method 'Bind the GridView control to the datasource ds = pxy.GetCustomers() DataGridView1.DataSource = ds.Tables(0) End Sub End Class