DataGrid.DataMember property in CF

  • Thread starter Thread starter Shanti
  • Start date Start date
S

Shanti

I was posting this at developer newsgroup with not much of response:

Does CF version of DataGrid have the 'DataMember' property?

There is a sample code in .NET Framework Class Library topic
"DataGrid.DataSource Property", which is given below:
Private Sub BindToDataSet(myGrid As DataGrid)
' Create a DataSet.
Dim myDataSet As New DataSet("myDataSet")
' Insert code to populate DataSet with several tables.
myGrid.DataSource = myDataSet
' Use the DataMember property to specify the DataTable.
myGrid.DataMember = "Suppliers"
End Sub 'BindToDataSet

When I try to enter last line in a SmartDeviceApplication, I get error
"DataMember is not a member of System.Windows.Forms.DataGrid". Why?
 
Your GridDemo example was quite helpful and finally I could display the grid
with contents. This I was trying for the past one week but in vain.
ThanQ...
 

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

Back
Top