Gridview rowupdating not retrieving newvalues dating club online community co dk
not-for-mail | Xref: TK2MSFTNGXA02gbl microsoft.public.dotnet.framework.aspnet:372922 | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet | | Steven, | | Thanx for confirming the limitation.
My Grid View has a mix of Read Only and Read/Write columns. Then inside Row Data Bound event I set its visibility to false. You should be able to access these columns inside the row-updating-event.
I need to get at the underlying data value in the data source.
i am getting old values in the rowupdation in gridview , while clicking over the update button , in my code behind i am using below code to get value. Find Control("txtunit_price") 'Reset the edit index. To get both the old and the new value of a field named unit_price, (for the example as a String.
not-for-mail | Xref: TK2MSFTNGXA02gbl microsoft.public.dotnet.framework.aspnet:372406 | X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet | | Steven, | | From the aspx file: | | Cell Padding="2" Cell Spacing="2" Allow Paging="True" | Empty Data Text="the cart is empty" On Page Index Changing="grid Cart_Page Index Changing" On Row Canceling Edit="grid Cart_Row Canceling Edit" | On Row Deleting="grid Cart_Row Deleting" On Row Editing="grid Cart_Row Editing" On Row Updating="grid Cart_Row Updating" Steven, Thanx for confirming the limitation. I don't recall seeing it emphasized in the documentation, and these kinds of | dependencies create annoying bugs.
Two things: | | 1) I think this needs to be documented better.
When I hit Update, the changes are not saved, and there is no error message. When I hit Update, the changes are not saved, and there is no error message. Then the page posts back, the text boxes go back to being labels and the new values are lost, and the Row Updating code never fires. Yes, I did put the breakpoint at the Row Updating line (and not in the function).Hi there, I have the same problem and I checked the e.New Values,this is equal to Nothing, I Bind it to List object. Yes, I did put the breakpoint at the Row Updating line (and not in the function).
You have to make sure that you aren't setting your Grid View's data when it is not postback.
Find Control("txtdescription") Dim txtunit_price As Text Box = gvr. Edit Index = -1 'Bind data to the Grid View control. When all you've got is a Hammer, Every Problem looks like a Nail. Since you are already getting a Row Updating event, I'll work from there.