Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Gridview with checkbox and rowcommand

Status
Not open for further replies.

belle9

Programmer
Nov 3, 2004
87
US
I have gridview with a templatefield and a checkbox within that. What I'm trying to accomplish is allow the user to click on the row on any cell to select that row, and to do something OTHER than what would happen when they check.
(checking the row will bind a child gridview and check/uncheck all the children rows as well as calculate a running total. clicking the row should just bind the associated child gridview without changing any checked states or calculating a total.)

What's happening is that when they click on the row, it binds the child and works fine. But when they click a checkbox, it seems that postback occurs twice: it goes to my checkbox routine, then the rowcommand, and then back to the checkbox routine. How do I trap this??

Thanks for any input!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top