Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > EditItem Template

Reply
Thread Tools

EditItem Template

 
 
=?Utf-8?B?SmltIEhlYXZleQ==?=
Guest
Posts: n/a
 
      02-18-2005
I want to populated the list items which will appear in a dropdown list when
the user click on a row in my datagrid. I used the DataBinding Event and
populate the drop down and set the index to the appropriate value within that
drop down. Now when the user presses the"Update" button when editing a row,
by the time it gets to the Update event the Selected index of my Drop Down
has been clobbered.

I set a switch to ensure that I would not re-execute the code to
"re-populate" the drop down when the update event fires...but still no
luck...the index is setting at zero. Any ideas as to what I might be ding
wrong?
 
Reply With Quote
 
 
 
 
=?Utf-8?B?QmlsbCBCb3Jn?=
Guest
Posts: n/a
 
      02-18-2005
Jim, I can't quite tell from this description, but it's likely you *do* need
to repopulate the dropdown list--if those same items aren't there when you
come back around you're not going to get your selected index.

Bill

"Jim Heavey" wrote:

> I want to populated the list items which will appear in a dropdown list when
> the user click on a row in my datagrid. I used the DataBinding Event and
> populate the drop down and set the index to the appropriate value within that
> drop down. Now when the user presses the"Update" button when editing a row,
> by the time it gets to the Update event the Selected index of my Drop Down
> has been clobbered.
>
> I set a switch to ensure that I would not re-execute the code to
> "re-populate" the drop down when the update event fires...but still no
> luck...the index is setting at zero. Any ideas as to what I might be ding
> wrong?

 
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
link textboxes in gridview EditItem template using javascript Jason ASP .Net 1 07-12-2010 08:41 AM
Events in DataList EditItem Template won't fire Crazy Cat ASP .Net 3 10-14-2008 01:17 PM
Bug: Listview edititem: First item in list has a null edititem James Cooke ASP .Net Web Controls 0 09-11-2008 07:25 PM
GridView as EditItem Template Dariusz Tomon ASP .Net 3 04-05-2007 06:10 PM
Re-use the EditItem template JP.Gantlin ASP .Net 1 10-04-2006 08:36 AM



Advertisments