Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / General / September 2007

Tip: Looking for answers? Try searching our database.

Odd Datagrid Behavior

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Stephen - 11 Sep 2007 21:32 GMT
Okay, I have a datagrid on my page, with two columns. Both of them are
Template Columns, one with a link button in it and the other with a
LABEL in it.

On the initial databind, the datagrid is built successfully, including
the HTML that appears in the label which is generated during the
ItemDataBound event.

Expected behavior is that the user will select the link button, the
datagrid hides, and a panel shows up with various controls which the
user interacts with. When the "SAVE" button is clicked, the panel
hides and the datagrid is rebound and displayed once more.

For the most part this is working perfectly, except for that LABEL
control on the re-binding after the SAVE button has been clicked. At
that point, and for that row only, the label does not display the data
generated in the ItemDataBound event.

Any thoughts?

Thanks!
- Stephen
Stephen - 12 Sep 2007 17:14 GMT
> Okay, I have a datagrid on my page, with two columns. Both of them are
> Template Columns, one with a link button in it and the other with a
[quoted text clipped - 18 lines]
> Thanks!
> - Stephen

All right, we discovered the issue here. Apparently, after the
ITEMCOMMAND from the button click processed, that particular row was
no longer considered an Item or AlternateItem but rather a
SelectedItem.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.