Asp gridview rowupdating event

Updating and binding control to other controls within the same row of a Grid View Hi In the Edit Template of my Grid View I show 2 Drop Down Lists. Right now I everything working fine except when the grid get over 20 items in it the process slows down horribly.When the user selects the first dropdownlist, I need it to update the contents of the second dropdownlist. The reason why is because on every postback I'm looping though the grid and making sure that the next dropdown only contains items that are filtered on the previous dropdown.The Edit, Delete and Insert events work as I expect. The markup and code behind are as follows: Hi cpkilekofp; I removed the Insert command button and put in an event for Command to see if the Update button press in the grid View control would trigger the Command event - it did not. My markup and code look as follows and the Update event is not firing: Hi cpkilekofp; I removed the On Row Updating from the Grid View definition - to no avail. David I added a stub for the grid View Row Command event and set a breakpoint. Placed breakpoints at Row Command, Row Editing and Row Updating. Much thanks to cpkilekofp and informaniac for their time and effort in trying to debug this problem for me.

asp gridview rowupdating event-21asp gridview rowupdating event-81asp gridview rowupdating event-36

event is raised when a row's Update button is clicked, but before the Grid View control updates the row.

This enables you to provide an event-handling method that performs a custom routine, such as canceling the update operation, whenever this event occurs.

Do you have some sort of Java Script functionality that may be stopping it? A common problem people have with Grid Views is understanding when to data bind the data source to the Grid View.

-Frinny Hi all, I seem to be having the same issue but I don't quite follow the trouble with the above post. Can you explain the T/S a little more or maybe point me to another post that may have already covered it? Hi all, I seem to be having the same issue but I don't quite follow the trouble with the above post. Can you explain the T/S a little more or maybe point me to another post that may have already covered it? It's quite common that people create the data source and bind this source to the Grid View in their Page_Load() method.

I have my Subs that do this fine when not inside the Grid View, but what is the correct way to do it whilst they are in the Grid View? So for instance when I select Heavy Sort as a next process step only heavy sort shows up. Hello all, I just posted a message yesterday, there is no one replied to me.

Last modified 05-Dec-2019 15:16