Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
556
UpdateRow event does not fire on updates
posted

I have an ultrwebgrid bound to a sqldatasource.  The UpdateRow event fires when I add a row, along with the AddRow event, but it does not fire when I update a row.  I think I have all the AllowUpdate type fields set.  The adding of rows run fine.  I have taken out the paging to simplify.  I can edit the lone updateable cell just fine.  I have a multiple field primary key, but it is supposed to handle it as I input  the fields, in the correct order, separated by commas in the DataKeyFields property.  I have attached the pertinent markup and C# code.

Parents
  • 45049
    posted

    How are you binding your grid to the SqlDataSource?

    If you're doing this in code, you may need to move this to a different location (Page_Load is the most often used and may be too late in the page's lifecycle), or possibly avoid calling DataBind().

    If you're doing this in the designer, then I can't think of a reason why this should occur.  Can you reproduce in a sample application that we can run and debug?

Reply Children