Thanks again Mr.John Simmons
Here iam using vb.net Coding and WPF application
This is how i tried in Windows
con.Open()
Dim strSQL As String = "Select * from Addressbook"
Dim cmd As New SqlClient.SqlCommand(strSQL, con)
Dim reader As SqlClient.SqlDataReader = cmd.ExecuteReader()
Dim j As Integer = 0
If reader.HasRows Then
While reader.Read()
ListViewAddressBook.Items.Add("")
ListViewAddressBook.Items(j).SubItems.Add(reader(2))
ListViewAddressBook.Items(j).SubItems.Add(reader(3))
ListViewAddressBook.Items(j).SubItems.Add(reader(4))
ListViewAddressBook.Items(j).SubItems.Add(reader(5))
AddressBookMobileArrayList.Add(ListViewAddressBook.Items(j).SubItems(3).Text)
j = j + 1
End While
End If
reader.Close()
con.Close()
BUT WHEN I TRIED THIS IN WPF,its giving error
Kindly guide me Mr.John Simmons
Thanks in advance
Naveen...