New value in gridview rowupdating event
I am binding to a custom datasource in the code behind.It gets into the "On Row Updating" event just fine, but there are no New Values or Old Values.After searching long and hard I found a great article that solved my issue.A Grid View Update Event Args object is passed to the event-handling method, which enables you to determine the index of the current row and to indicate that the update operation should be canceled.Thanks The currency manager is in Windows Forms programming.My hunch is that the Sql Data Source and Object Data Source has provisions to tie into an update method/stored procedure.Regarding on the Grid View control's Row Updating event problem, it is the expected behavior because when we do not associate Grid View(or other ASP.
I was just testing if I will get the changed value out of the textbox when updating with no luck.The issue comes when I make each gridview collapsible, again, it works fine but when I click on "Edit" on the 3rd gridview all the grids collapse, I can then re-open them and the "edit mode" is still present and I can still save my updated data. I based a lot of my code from this page: Nested Grid And I understand how I can fix my issue on a 2 level nested gridview, by simply adding the C# code: Hi Gurus , It happened to add an extra Gridveiw Header in row_databound event , It did worked fine on ! Can any expert post some pointers , differnces between grid row_created vs row_databount with some sample table data created dynamically behaviour of both the events in ! But again, when I hit the "Edit" button in the first column (the Command Field column) . Text properties of the cells resolve to "" Here is the code for the event, followed by the gridview in the form (inside an updatepanel) Protected Sub Grid View1_Row Data Bound(By Val sender As Object, By Val e As System. To cancel the update operation, set the collections, if necessary, before the values are passed to the data source.I am using templatefield in my columns so i am not able to get the new values from the textboxws that i am having in the gridview.