DataGrid won't display DataSet

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
 
P

Peter Foot [MVP]

In the Compact Framework you must explicitly set a table within the dataset
e.g.
Me.dgdVER.DataSource = dsVER.Tables("tblVersion")

Peter
 
I

Ilya Tumanov [MS]

Which, BTW, would be fixed in V2.

Best regards,

Ilya

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Display results in datagrid 1
DataGrid 3
DataSet Problem 3
SqlCeResultSet and datagrid 5
Filtering a MS Access Dataset 2
Display contents of Data Grid 2
DataGrid Won't come back 4
Datagrid Question 4

Top