Click here to Skip to main content
15,949,686 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a grid having check boxes on first column.
If i click single or multiple checkboxes present in the datagridview, "delete" button present should be enabled.
This delete button is not present inside grid. It is a separate button control outside the grid.

after clicking the delete button the selected rows should be deleted.

Regards,Sarthak
Posted

1 solution

Handle the check box check change event and inside that count the number of check boxes checked inside gridview. If count is greater than 1, then enable the button.
 
Share this answer
 
Comments
sarthakm 10-Sep-15 2:44am    
Tadit the checkboxes are present in the gridview rows in the first column.
So, what is the issue?

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