1: 2: 3: 4: 5: 6: 7: 8:
Dim connString As String = "..." Using da As New SqlDataAdapter("SELECT * FROM TableName", connString) Using ds As New DataSet da.Fill(ds) Me.DataGridView1.DataSource = ds.Tables(0).DefaultView End Using End Using