Hi there I am new to .net and I have put at least 4 hours in to figuring out why i cannot view my results when I run a datagrid in my 2010 visual studio WPF application.
Also, it looks like it is only filling one record in the datagrid. Any ideas?
Dim cnn As SqlConnection
Dim connectionString As String
connectionString = "Integrated Security=SSPI;Initial Catalog=TestDb;Data Source=" & Environment.MachineName.ToString
cnn = New SqlConnection(connectionString)
cnn.Open()
Dim sql = "SELECT * FROM address "
Dim dscmd As New SqlDataAdapter(sql, cnn)
Dim ds As New DataSet
dscmd.Fill(ds)
DataGrid1.Items.Add(ds)
cnn.Close()