Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C#4.0
Hi....
 
I have checkbox in my gridview,I wanna select or deselect all checkbox at a time on window form in C#
Posted 24-Jun-13 6:16am
Comments
stibee at 24-Jun-13 11:24am
   
WPF?
1989priya at 24-Jun-13 11:29am
   
WPF means?
Nelek at 24-Jun-13 11:35am
   
it means you need to learn more. WPF = Windows_Presentation_Foundation[^]
He is asking you (in other words) in which context are you using your gridview.
 
I recommend you to read: What have you tried?[^]
ThePhantomUpvoter at 24-Jun-13 11:37am
   
Exactly, what have you tried? "I wanna" is not a question or a description of any kind of a problem.

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

Solution in WinForms: [Your gridname].ClearSelection()
http://msdn.microsoft.com/en-us/library/bxdf3ekh%28v=vs.80%29.aspx[^]
 
Solution in WPF: [Your gridname].UnselectAll()
http://msdn.microsoft.com/en-us/library/system.windows.controls.datagrid.aspx[^]
  Permalink  
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 587
1 Sergey Alexandrovich Kryukov 479
2 Maciej Los 305
3 Mathew Soji 195
4 BillWoodruff 170
0 OriginalGriff 7,356
1 Sergey Alexandrovich Kryukov 6,777
2 DamithSL 5,461
3 Manas Bhardwaj 4,916
4 Maciej Los 4,475


Advertise | Privacy | Mobile
Web02 | 2.8.1411023.1 | Last Updated 24 Jun 2013
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100