Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > HOW-TO: Datagrid: Read contents of template (textbox) column in ImgBtnClick event

Thread Tools

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

Posts: n/a
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?


Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (
Version: 6.0.514 / Virus Database: 312 - Release Date: 28/08/2003

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
setting Column width of Template Column in Datagrid.. Charleees ASP .Net 2 06-20-2006 12:52 PM
DataGrid loses view state if first column is a template column. Ken Varn ASP .Net 1 08-19-2005 02:54 PM
Template column base on another column value Esperanza ASP .Net Datagrid Control 5 02-21-2005 04:02 PM
how to know if a datagrid column is a template column? Dexter ASP .Net 1 01-18-2005 01:45 PM
Bound Column or Template Column (w dAdapater?) in DataGrid Ravichandran Mahalingam ASP .Net Datagrid Control 0 01-09-2004 03:30 PM