CheckChanged event not firing when unchecking CheckBox in GridView

  • Thread starter Thread starter jlficken
  • Start date Start date
J

jlficken

Does anyone have any idea what has to be done in order to get the
CheckChanged event to fire when a bound CheckBox is unchecked in the
GridView. It fires when going from unchecked to checked just fine but
if I decide to uncheck it again the event never fires and it stays
checked. It is bound to a DataTable being stored in a session
variable that the entire grid is bound to and I can't figure out why
the event doesn't fire. I am binding the grid in the OnInit event of
the page. Any ideas would be welcomed.
 
Does anyone have any idea what has to be done in order to get the
CheckChanged event to fire when a bound CheckBox is unchecked in the
GridView. It fires when going from unchecked to checked just fine but
if I decide to uncheck it again the event never fires and it stays
checked. It is bound to a DataTable being stored in a session
variable that the entire grid is bound to and I can't figure out why
the event doesn't fire. I am binding the grid in the OnInit event of
the page. Any ideas would be welcomed.

can you please try to bind after checking
if(!ispostback){
//bind here
}

nahid
http://nahidulkibria.blogspot.com/
http://www.kaz.com.bd
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top