Determining the control clicked on in datagrid
Posted on 2004-10-08
I want to add a 2 controls to a datagrid one with text = 'Add to Cart", and the other,
a textbox. The user must be able to add text to the textbox, press the 'Add to Cart"
button or label and have the cart updated in the background.
I have a problem determining the control('Add to Cart") clicked on in order to get the
ProductID(databound), and quantity(textbox unbound) on the same row. I need to update the
cart in a stored procedure using the ProductID and quantity, in an event somewhere.
My problem is 2 fold:-
1. I don't know how to do determine the row clicked on and capture this in an event.
2. I can't find a comprehensive reference anywhere explaining the events available
for the various controls, and what I can access when, what is contained in Eventargs