Asp gridview rowupdating event not firing

The only thing I can see that I'm doing differently from the other Grid View is I'm calling the Load() method: Sql Command my Command = new Sql Command(my Query, cn); Sql Data Reader my Reader; my Reader = my Command.

Execute Reader(); Sigh, I found the problem and I feel like a total idiot now.

Means Each cell contain updatepanel control inside.. it is also binded in code behind to s data table (generated on the fly) .

Even comments about manipulating the page controls collection from within a custom control on the page - am I breaking best practice here? Then When i add new row or column at runtime ,then that newly add cell also contain control. good day to all, i'm also having the problem of the Grid View1_Row Updating event not firing... the gridview is inside an update panel and the columns are generated in code behind...

Andy i am going to post a full working version of a product cms.

asp gridview rowupdating event not firing-90asp gridview rowupdating event not firing-51

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. I hope someone can reply with some experience or just general comments. And Each cell in that Grid Vew contain contrrol updatepanel. 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. things to keep in mind: * use the preinit event to add the controls * remove the gridview from the control collection since it shouldn't be rendered (it would be event better if you build a method that creates the grid; however, it seems like you want to wrap controls that exist on the page, so maybe that won't be possible) *i've changed the code that gets the text from the cells. as allways, no garantees on this code : WOW, fabulous, thanks Luis!!!! I am using a Template Field to display my Edit, Update and Cancel 'buttons' in the first column of the Grid View within respective Item Template and Edit Item Template fields.

Leave a Reply