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...
 
Back
Top