Click here to Skip to main content
15,909,325 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
in design as follows;

i have one checkbox in my design.
when i click that checkbox, in the code following will appear,

private void checkBox1_CheckedChanged(object sender, EventArgs e)
{

}
the above one is ok.


But i have one checkbox inside the datagridview, for that how to write the checkbox_ checkedchanged code to be write for the checkbox inside the datagridview.


please help me.

Regards,
Narasiman P.

note it is windows application.
Posted

I think you could use the datagridview's CellContentClick event. Have a look at this discussion: http://stackoverflow.com/questions/932040/triggering-a-checkbox-value-changed-event-in-datagridview-c-net[^]
 
Share this answer
 
you have to handle the grid event and than you can identify the checkbox checked or not

you can try

CellClick
CellContentClick
CurrentCellDirtyStateChanged
 
Share this answer
 

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