Click here to Skip to main content
15,916,293 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello,
I want to clear selected row as well as rows after a button click,
I know datagridview.cleaselection() works fine but it is not,
I have used it in event on button click and the event handler also there for button click,am I missing something out here,any other method will also do,just want to clear selected rows or rows after button click.


Thanks in advance
Posted

1 solution

ClearSelection() works fine and clears the selection by unselecting all selected rows. It does not clear the rows, only the selection...
 
Share this answer
 
Comments
AmrutaAsbe 10-Sep-11 23:13pm    
Thanks for clarification !!!

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