We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

How to catch the event for checkbox in databoundgrid?

Hi, I have a databoundgrid which has a column with bit datatype (true/false). it is shown as a checkbox. I would like to catch the event when the user check/uncheck it so I can trigger other tasks as database update, etc. What would be the best way to do it in databoundgrid? Thanks a lot Chris

3 Replies

Administrator March 7, 2005 02:57 PM UTC

Try the gridDataBoundGrid1.CheckBoxClicked event.

Administrator March 8, 2005 03:07 PM UTC

Thanks. It works. Another question, how can I catch the keypress event in some cells. I used keypress event but I cannot find colIndex from the argument. >Try the gridDataBoundGrid1.CheckBoxClicked event.

Administrator March 8, 2005 05:13 PM UTC

You can get the row and col from grid.CurrentCell.RowIndex/ColIndex.
Loader.
Live Chat Icon For mobile
Up arrow icon