views:

426

answers:

1

Hey guys,

I'll get right to the point.

I have a listview which has an ItemTemplate and EditTemplate. When I switch an item into edit mode I have a bunch of checkboxes as options. Now the problem.

in Editmode I would like to have certain options disappear (or replaced by "--") when certain checkboxes are unchecked and of course reappear when it is check again.

I have tried to use the OnCheckedChanged event in the edittemplate but it doesn't fire. since I see no other useful events to react to that could do this for me.

any ideas anyone?

thanks J.

+2  A: 

Have you set AutoPostback="true" on your checkboxes? The OnCheckedChanged event won't do anything unless this is set.

Dan Diplo
I should really slap myself for that one.
Jan W.
We've all done it :)
Dan Diplo