You must bind the DataGrid to an individual table within the DataSet e.g.
[C#]
dataGrid1.DataSource = ds.Tables["TableName"];
[VB]
DataGrid1.DataSource = ds.Tables("TableName")
You can get the number of rows in the table using
[C#]
ds.Tables[0].Rows.Count;
ds.Tables["TableName"].Rows.Count;
[VB]
ds.Tables(0).Rows.Count
ds.Tables("TableName").Rows.Count
Peter
--
Peter Foot
Windows Embedded MVP
www.inthehand.com
Do have an opinion on the effectiveness of Microsoft Windows Mobile and
Embedded newsgroups? Let us know!
https://www.windowsembeddedeval.com/community/newsgroups
Ghost said:
How do I bind DataGrid in Compact Framework to some dataset at runtime?
There is no SetDataBinding method
.
And how can I see how many record is in DataSet?