Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Datagrid Control > Dynamic EditItemTemplate

Reply
Thread Tools

Dynamic EditItemTemplate

 
 
sysdesigner
Guest
Posts: n/a
 
      06-24-2005
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
 
Reply With Quote
 
 
 
Reply

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
set selectedvalue in dynamic edititemtemplate for ascx dropdown in cindy@tams.com ASP .Net 0 09-20-2006 10:05 PM
how do i access a dropdownlists selected value in a datagrid edititemtemplate column from the selectedindexchanged event of another dropdownlist in a datagrid edititemtemplate column Dave M ASP .Net Datagrid Control 0 12-14-2004 11:53 AM
CustomValidator in the EditItemTemplate of a DataGrid Dave ASP .Net 1 10-31-2003 07:10 AM
Datalist EditItemTemplate SStory ASP .Net 0 08-18-2003 11:01 PM
datagrid edititemtemplate for dates Trevor Hartman ASP .Net 0 07-16-2003 06:46 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57