Dynamic EditItemTemplate

S

sysdesigner

I am dynamically building EditItemTemplate columns for a datagrid. Whenever
the "edit" or "update" commands are issued the event code fires but there
isn't any controls in the Item collection. The following code yields a
"null" reference on postback, when there should be a textbox called txtOne in
the collection.

textBoxOne = (TextBox)e.Item.FindControl("txtOne");

Any ideas?

TIA ,
Shawn

PS. The following article shows the method that I am using to create the
template columns.

http://www.dotnetbips.com/displayarticle.aspx?id=84
 

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,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top