views:

80

answers:

1

Hi All,

I'm using Silverlight 4. I need to do grouping in my DataGrid. So i need to add add reference to System.ComponentModel. I could not find System.ComponentModel in "Add Reference". I added reference to System.ComponentModel.DataAnnotations and the added the following XMLNS in my XAML Page

xmlns:cm="clr-namespace:System.Windows.Data;assembly=System.ComponentModel"

It still says that assembly System.ComponentModel cannot be found. Can anyone pls help me out. Thank you.

A: 

You may have tried to reference the wrong assembly. The System.ComponentModel assembly is not available to SL assemblies, even though some of the System.ComponentModel namespaces are (i.e. a lot of the System.ComponentModel namespaced items in SL actually reside in the System assembly).

For more info, check this MSDN page: .NET Framework Class Library for Silverlight. From there you can trace which assembly the item is in.

slugster