View Single Post
  #2 (permalink)  
Old August 25th, 2009, 09:52 AM
Lee Dumond's Avatar
Lee Dumond Lee Dumond is offline
Wrox Author
Points: 4,942, Level: 29
Points: 4,942, Level: 29 Points: 4,942, Level: 29 Points: 4,942, Level: 29
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2008
Location: Decatur, IL, USA.
Posts: 923
Thanks: 12
Thanked 166 Times in 162 Posts
Default

This code won't work:

DropDownList ddl1 = (DropDownList)e.Row.FindControl("ddl1");

You won't be able to find the ddl in a row, because it is inside a cell. You need to find the cell first, then find the ddl in the cell.
__________________
Visit my blog at http://leedumond.com
Follow me on Twitter: http://twitter.com/LeeDumond

Code:
if (this.PostHelpedYou)
{
   ClickThanksButton(); 
}