Hello All,

I am struggling to display the contents of a database to a "grid" on the device. I need to take all values in the database and display them to the device screen in an "excel" type page.

Here is what I have so far...

c
Code:
  
conn4 = New SqlCeConnection("password = ''; Data Source = \program files\SmartDeviceProject6\MyDB.sdf")

        conn4.Open()

        'Select all records
        Dim cmd4 As New SqlCeCommand("SELECT * FROM MainDB", conn4)

        rdr2 = cmd4.ExecuteReader()

        DataGrid1.DataSource = "what do I use here to display contents?"

Thanks all, Magohn