DataGrid won't display DataSet

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

have a DataSet (dsVER) that contains one table (tblVersion) which has 39
rows in it. when I try to display the table in a datagrid I only get a
button, with a triangle on it,in the top left corner of the grid. No data is
displayed. Tapping the button doesn't do anything.

VerRecCount = daVER.Fill(dsVER, "tblVersion")
MessageBox.Show(CType(VerRecCount, String))
Me.dgdVER.DataSource = dsVER
 
In the Compact Framework you must explicitly set a table within the dataset
e.g.
Me.dgdVER.DataSource = dsVER.Tables("tblVersion")

Peter
 
Which, BTW, would be fixed in V2.

Best regards,

Ilya

This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
 
Back
Top