HOW-TO: Datagrid: Read contents of template (textbox) column in ImgBtnClick event

D

DAC

Hello,
I have a template column of my DataGrid filled with textboxes (one textbox
inside each cell/row).
I have set myTextBox.ID = "myBox" in InstantiateIn function,
so all the controls have the same name (?).

How do I get the values the user entered in each textbox inside a
ImageButtonClick event?
I'm trying to use DataGrid.FindControl, but it doesn't work.

Any ideas?

Thanks,
Daniel
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,581
Members
45,057
Latest member
KetoBeezACVGummies

Latest Threads

Top