The text of this article is not in this database — only its details are. The old site it was published on is gone, but the Internet Archive kept a copy: Select all CheckBox in DataGrid and delete rows in Silverlight 3
Join the conversation! Your thoughts help the community grow.
Sign in to leave a comment
It is the same account you read, post and publish with — and you will come straight back to this page.

Vu Hong TrieuPosted Jun 4, 2015, 9:22 AM
I want apply this code to my WPF code. How to use?
Anbazhagan APosted Jul 30, 2014, 1:26 PM
Hi!, First of all thanks with this article...This really helped me. In my scenario I have a tabcontrol with various tabs ...Each tab contains one Datagrid....As per your suggestion I was able to add checkbox to each datagrid...I have used same DataGridColumnHeaderStyle for all datagrids.. For the Chk_all event to give specific datagrid name....I am unable to get the information from Sender which datagrid was clicked ....Do I have to create multiple style for all 14 grids...:( Plz help..
chandan ksPosted Oct 12, 2013, 6:01 AM
thnaks man...really usefull..
Mitesh PatelPosted Mar 20, 2012, 12:15 PM
Hi!, When I tried to run this solution by implementing on my page. it is giving me following error. Failed to create a 'System.Type' from the text 'dataPrimitives:DataGridColumnHeader'. can any one solve my problem? Thanks in advance. :)
Guest UserPosted May 5, 2011, 10:56 AM
This is actually a bad example with several issues in it. It doesn't work well once virtualization kicks in. The event handler for the row checkbox is added every time a row is loaded, which results in potentially hundreds of unnecessary invokes (with all side effects and performance degradation) when you scroll through the list for some time. It doesn't use data binding for the check boxes which would've made things easier and reduced code, and it has superfluous code fragments in it that are not needed (e.g. updating the ItemsSource property of the grid in the delete routine). More discussion: http://forums.silverlight.net/forums/p/227596/553093.aspx#553093 -Peter
drsullivanPosted Apr 4, 2011, 6:19 PM
This is just what I was looking for, thank you so much. Now, have you ever made the default Key.Enter work like a Key.Tab in a datagrid? My users are used to what is called 10 key entry, easy in asp.net but I have not figured it out in Silverlight. Thanks for all your fine articles. David Sullivan
hkman hkmanPosted Feb 4, 2010, 8:46 PM
pls fix , thanks