e.NewValues returning oldvalues in GridView_rowupdating event
I am using asp.net 2.0. I have a gridview with
I am trying to access newValues in rowupdating event. It gives me
a) datakeynames property set
b) I am using template fields in my gridview and have "EVAL" for
ItemTemplate and "BIND" for EditItemTemplate
c) I have datasourceID and updatestatement set.
d) I set DataMember="DefaultView"
I am not sure what am I missing. I have worked before with gridview row
update/delete..but never faced such problem.
I want to validate the user input before my row is updated. I
think...we can do this in rowupdating event before row is updated. I am
not sure why e.newvalues collection is returning the oldvalues.
any help is greatly appreciated.
|All times are GMT. The time now is 01:39 AM.|
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.