Click here to Skip to main content
15,892,480 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi....

I have checkbox in my gridview,I wanna select or deselect all checkbox at a time on window form in C#
Posted
Comments
stibee 24-Jun-13 11:24am    
WPF?
1989priya 24-Jun-13 11:29am    
WPF means?
Nelek 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?[^]
[no name] 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

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[^]
 
Share this answer
 
v3

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900