Click here to Skip to main content
11,493,948 members (60,673 online)
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 Sergey Alexandrovich Kryukov 448
1 F-ES Sitecore 229
2 Nakul Chaudhari 225
3 OriginalGriff 225
4 CPallini 215
0 Sergey Alexandrovich Kryukov 10,237
1 OriginalGriff 8,730
2 Sascha Lefèvre 3,664
3 Maciej Los 3,392
4 Richard Deeming 2,500


Advertise | Privacy | Mobile
Web01 | 2.8.150520.1 | Last Updated 24 Jun 2013
Copyright © CodeProject, 1999-2015
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