event handler for checkbox in datagrid

R

rodrigo guerra

i have a checkbox and a dropdownlist in 2 templatecolumns in a datagrid.

how can i add a onClick/CheckedChanged event handler to a checkbox in the
datagrid ?

i want to enable a dropdownlist when the checkbox is checked and disable the
dorp when checkbox is not checked.

thanks.
 
J

Joe Glover

Hi Rodrigo

Add an event handler to the datagrid's ItemCommand event. It will fire when
either control raises an event passing you event args containing dataitem,
control reference etc.

HTH
Joe
 
J

Joe Glover

Sorry! Sorry ... I checked this with a LinkButton (works fine) but doesn't
work with a checkbox. Will post again if I find the real solution ...

Joe
 

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

Similar Threads


Top