Click here to Skip to main content
14,921,361 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I have a gridview control with a checkbox column. I am handling the checkedchanged event but every time I check or uncheck the checkbox I am getting the sender as always Checked = True. Like the following on is always… Checked = True.
protected void chkConnect_CheckedChanged(object sender, EventArgs e)

For information, I have Autopostback of check box as True.

Any Suggestions please.

Updated 3-Mar-11 0:42am
Amit Kumar Tiwari 3-Mar-11 7:08am
Title of the question is wierd ;)
"is not firing wrongly"
Sreenath Gv 3-Mar-11 7:08am
I think vocab is not needed here...!

It is working dude.

I used this code

protected void chkBox1_CheckedChanged(object sender, EventArgs e)
    CheckBox chk = (CheckBox)sender;
Sreenath Gv 3-Mar-11 7:43am
yeah I have done the same..but it is alwasy in checked state..!
Amit Kumar Tiwari 3-Mar-11 8:13am
Post the markup please.
Selecting multiple checkboxes inside a GridView control
Adding a GridView Column of Checkboxes
More results

I hope the above information will be helpful. If you have more concerns, please let me know.
set the EnableViewState of the page to TRUE

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

  Print Answers RSS
Top Experts
Last 24hrsThis month

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