HighTechTalks DotNet Forums  

Gridview e.OldValues and e.NewValues are nothing

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss Gridview e.OldValues and e.NewValues are nothing in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Pulkit Sharma
 
Posts: n/a

Default Gridview e.OldValues and e.NewValues are nothing - 07-24-2007 , 02:38 AM






Hi,

I am using a gridview control in asp.net 2.0 and creating some dynamic
template fields in it. Whenever I am trying to get the e.NewValues in the
row_updating event , it is always nothing,

Is this a know issue? If there is a work around please let me know.

Protected Sub gridSystemLookUpValues_RowUpdating(ByVal sender As Object,
ByVal e As System.Web.UI.WebControls.GridViewUpdateEventArgs) Handles
gridSystemLookUpValues.RowUpdating
' e.OldValues and e.NewValues is always nothing here

End Sub


Regards

Pulkit



Reply With Quote
  #2  
Old   
Walter Wang [MSFT]
 
Posts: n/a

Default RE: Gridview e.OldValues and e.NewValues are nothing - 07-24-2007 , 08:34 AM






Hi Pulkit,

Since you didn't posted your complete code listing, I'm not sure if this
the same scenario as following thread:

#GridView, DataSource, RowUpdating, e.OldValues and e.NewValues collections
http://www.developersdex.com/asp/mes...24WBARGHA.3052
%40TK2MSFTNGP09.phx.gbl%3E


Would you please check if this is the same issue? Please feel free to tell
me more about your code if that thread doesn't help. Thanks.


Regards,
Walter Wang (wawang (AT) online (DOT) microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
  #3  
Old   
Walter Wang [MSFT]
 
Posts: n/a

Default RE: Gridview e.OldValues and e.NewValues are nothing - 07-27-2007 , 05:05 AM



Hi,

I'm writing to check the status of this post. Please feel free to let me
know if there's anything else I can help.

Thanks.


Regards,
Walter Wang (wawang (AT) online (DOT) microsoft.com, remove 'online.')
Microsoft Online Community Support

==================================================
When responding to posts, please "Reply to Group" via your newsreader so
that others may learn and benefit from your issue.
==================================================

This posting is provided "AS IS" with no warranties, and confers no rights.


Reply With Quote
  #4  
Old   
GeneB
 
Posts: n/a

Default Re: Gridview e.OldValues and e.NewValues are nothing - 08-31-2007 , 09:48 AM



If I am understanding you correctly, the reason e.NewValues and e.OldValues are not populated is that you are dynamically populating the gridview. The e parameter relies on a design time datasource to populate these values.

In order to make this work, you will have to programmatically grab the values from the edit and create an update.

Reply With Quote
  #5  
Old   
Rachna
 
Posts: n/a

Default Re: Gridview e.OldValues and e.NewValues are nothing - 11-19-2007 , 11:39 AM



Hi geneB,

I am actually trying to update the gridview at run time and hence my
GridViewEditEventArgs e goes blank as soon as I hit the update button. I am
able to trap the oldvalues before i start to edit using the static variable
concept but i cannot seem to find out the way to get the new values in the
gridview. Can you please guide me? Any help would be highly appreciated?

cheers!
rachna

Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.