I've written a quick tutorial on my blog: am having somewhat of a challenge though. Can anyone offer help, or have you seen the problem yourself? The comments are in there to illustrate the problems I'm having. Drop a Grid View on the page, set the Auto Generate Edit button to true and paste the rest of the code here over the contets of the cs code-beside page. When I take a standard Grid View, bind it to a Data Table and dynamically wrap it in an Update Panel at run-time, the Row Updating event stops firing my handler. -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.What happens with this is that the source is being created every time the user submits the page.You have to make sure that you aren't setting your Grid View's data when it is not postback.If you do this, your Grid View's source will be refreshed before you're able to grab the new values out of it. On Row Deleting - can call registered event handlers" I couldnt figure out how to continue this thread, but the issues in it are related so i'm including it as a reference.
I'm writing a custom control that will automatically wrap controls in an Update Panel dynamically at run-time. // You can try Auto Generating the select and delete buttons to see the grid exhibit different behaviour // too.
Diagnostics; public partial class _Default : System. Within my custom control Init event I was examining the Page. Controls collection and taking each control matching my criteria and wrapping it in an Update Panel. I tried to get the Custom Control to react to the On Pre Init event of the page so I could fix things in the way you had suggested. I suspect the fact that I have hid it working at all from within a Custom control ws just luck and really I was probably having lots of issues happening that I didn't even see! I have to make gridview as a templet which contain some 20 column and 5 rows etc.
) to manipulate the Page and Form control collections in this way?
All was workin fine b4 I added the Update Panel and Content Template.
The Script Manager is in the Master Page Please help me....