event handler for checkbox in datagrid

  • Thread starter Thread starter rodrigo guerra
  • Start date Start date
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.
 
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
 
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
 
Back
Top