views:

162

answers:

1

Hi,

I have a Checkbox template column in a ASP.NET 3.5 GridView. Now the user has to click 'Edit', tick the Checkbox, then click the 'Update' or 'Cancel' button, which raises an event that we use to update database.

Is it possible to just check the box without going into Edit mode at all and raise a Checked event so that we can update database ? Alternately we can iterate through all rows, identify ticked rows and update them to DB in a loop.

Any pointers helpful.

Thanks, Chak.

+2  A: 

Try,

Row click event of gridview...

Ref this http://stackoverflow.com/questions/331231/c-gridview-row-click

Pandiya Chendur