Rowupdating gridview devexpress
I know this happens after an update command happens on the database, but I want to write my own custom update.The Row Updating event fires fine , but gv2_Row Updated does not fire? Width="99%" Header Style-Css Class="ph Head" Css Class="phone Table" Grid Lines="Both" Auto Generate Edit Button="true" Auto Generate Delete Button="true" On Row Editing="gv2_Row Editing" On Row Canceling Edit="gv2_Row Conceling Edit" On Row Updated="gv2_Row Updated" On Row Updating="gv2_Row Updating" Edit Row Style-Back Color="Light Yellow" Data Key Names="id External ID" If you're manually binding data to the Grid View (not using a Data Source ID), then the Row Updating event will fire after an update command, but the Row Updated event will never fire. Aaron I should have been more specific as to why I need the Row Updated to fire.Note: I don’t know if this happens under all circumstances, but for me, it happened for an ASPx Grid View that is databound via code rather than from a datasource object on an aspx page.A Solution: The simple solution for this problem is to handle the “oncelleditorinitialize” event of the ASPx Grid View.
This works great when you are editing an existing record — it won’t allow you to change that field, but when you try to insert a NEW record, you can’t enter anything in the field.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.