DataGrid in CF is an entirely separate control - not a downsized desktop
datagrid. It was rewritten with mobile device resources in mind. For samples
of binding datagrid to data see:
http://www.inthehand.com/forums/viewtopic.php?t=96
http://www.opennetcf.org/forums/topic.asp?TOPIC_ID=245
"Shanti" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> 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?
>
>