outdateboy

Hello,

I am a newbie to ADO.NET and mobile development.
From what i learnt from googling, the way to make a DataGridView to display a DataRelation is to set DataGridView.DataSource to a DataSet and DataGridView.DataMember to the name of the DataRelation.

In .NET CF 1.1 and 2.0, first of all, there is not DataGridView available. All i got is the older DataGrid, plus DataGrid doesn't have a DataMember property. What's the correct way to display a DataRelation then

Thanks a lot!


Re: Smart Devices VB and C# Projects How to display DataRelation in DataGrid?

Ilya Tumanov

None ¨C NETCF¡¯s data grid has no support for relations. Bind directly to related table instead.






Re: Smart Devices VB and C# Projects How to display DataRelation in DataGrid?

outdateboy

Thanks Ilya,

I am using DataView.RowFilter in combination with some DataGrid events to achieve similar out come.




Re: Smart Devices VB and C# Projects How to display DataRelation in DataGrid?

Ilya Tumanov

Yes, that is the common way to do it. Please see this if you need more details.