Rowupdating net Imagechat chan
Add(New Data Column("Col1_APH", Get Type(String))) dt. Add(New Data Column("Col1_TOIL", Get Type(String))) dt. NET Forum so that other people can learn from the experience too. -Frinny You may need to turn off validation even if you are not validating anything.It seems like the Java Script can get mangled otherwise.Would you please provided more detailed description about you problem with complete code?
Right now, I have not written code for the Update event. Right now, I have not written code for the Update event. 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.If you do this, your Grid View's source will be refreshed before you're able to grab the new values out of it.I'm having a very hard time understand what would prevent your event from being fired. 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.
In my VB Gridview, I had bind several column from datatable into one single column of the gridview. The following is the VB code: Protected Sub Grid View1_Row Editing(By Val sender As Object, By Val e As Grid View Edit Event Args) 'Set the edit index. Bind Data() End Sub Protected Sub Grid View1_Row Canceling Edit(By Val sender As Object, By Val e As Grid View Cancel Edit Event Args) 'Reset the edit index. Edit Index = -1 'Bind data to the Grid View control.