Asp onrowupdating not firing
Here my questions is when someone enters a value in the textbox an event should be fired! i dont want to have an edit link or update link because all the values to be entered are mandatory! selectedindexchanged fires when the index of the selected row changes, which hasn't occurred in this instance.
i tried Grid_Selected Index Changed1 but this not firing.. if all you are doing is updating another UI element with the same text, then making a trip the server is overkill.
If all columns are displayed, everything works great.
Note that the Edit and Cancel Edit buttons and associated events work just fine regardless of whether or not columns are hidden. I think I can work around this by checking in the On Row Updating event to see if any of the columns are hidden, and if so manually call the On Row Updating event handler, but that seems like a serious hack. Additional Info and better work around: The "bug" described above occurs if I set the column's visible property to false in the initial page load.
However, if i change the logic so that the column is hidden by setting the corresponding row cell's visible property to false in the On Row Created event, everything works as expected.
The Grid View control supports the following features:use Row Editing, Row Updating, Row Deleting, Row Command, Row Data Bound, Row Canceling Edit, and Pagination in a Data Grid.
From this article, you will have a clear view of the Grid View data insert, delete, and update operations.
Search for asp onrowupdating not firing:
That seems to be a better work around than the one I proposed above of checking the the commandname in the On Row Command event handler and possibly manually firing the On Row Updating event.