This is a migrated thread and some comments may be shown as answers.

Select all in Group / System.Windows.Controls.Data

1 Answer 73 Views
GridView
This is a migrated thread and some comments may be shown as answers.
Casey
Top achievements
Rank 1
Casey asked on 25 Jun 2009, 02:28 PM
I'm trying to add a checkbox to grouped rows, that would check all checkboxes in that group (or uncheck) when clicked.

I am trying to do it like this...

 

 

RadGroupDescription rgd = new RadGroupDescription();

 

 

CheckBox cb = new CheckBox();

 

cb.Checked +=

new RoutedEventHandler(cb_Checked);

 

rgd.DisplayContent = cb;

dataGrid.GroupDescriptions.Add(rgd);

However, I keep getting this error regarding the first line.... 
Error 3 The type 'System.ComponentModel.GroupDescription' is defined in an assembly that is not referenced. You must add a reference to assembly 'System.Windows.Controls.Data, Version=2.0.5.0, Culture=neutral, PublicKeyToken=3d8c6023c75a3242'. C:\pwSource\Silverlight2\Dev\Framework\PetroWEB\Reports\PWDataGrid.xaml.cs 415 13 PetroWEB.Silverlight

I have the dll referenced from the default location..  (c:\Program Files\Microsoft SDKs\Silverlight\v2.0\Libraries\Client\System.Windows.Controls.Data.dll) But it won't let me add a 'Using' Statement...

the only intellisense option at System.Windows.Controls.    is Primitives?


http://silverlight.net/forums/p/104147/237821.aspx#237821

1 Answer, 1 is accepted

Sort by
0
Accepted
Milan
Telerik team
answered on 29 Jun 2009, 06:55 AM
Hello Casey,

Could you try using the System.Windows.Controls.Data assembly that is distributed with our suite?
That should fix the problem.

Greetings,
Milan
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
GridView
Asked by
Casey
Top achievements
Rank 1
Answers by
Milan
Telerik team
Share this question
or