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
20
Issue with DeleteRow for newly added rows
posted

Hello there,

I have a grid which enables adding/deleting rows.  I call the server side function gridSubscription_DeleteRow when rows are deleted from the grid and I have

OnDeleteRow

 

="gridSubscription_DeleteRow" declared inside the definition of the grid.

My issue is, when I add a new row to the grid, and without saving to the database, I delete the newly added row, the event doesn;t get fired.  Is there anyway to fire this event for newly added rows?

Parents
  • 12679
    Suggested Answer
    posted

    Hello Sudha,

    I am not so clear with your scenario but if you register a server - side handler you do not need to call it manually, when you delete a row on postback the grid will raise the registered handler and you will be able to perform delete operation on your data.  

    For example: 

    Grid declaration 

     <igtbl:UltraWebGrid ID="UltraWebGrid1" runat="server"
      OnDeleteRow="UltraWebGrid1_DeleteRow">
    <Bands>.....
    
    

    Server side handler :

     

    protected void UltraWebGrid1_DeleteRow(object sender, RowEventArgs e)
    {
        //TODO : perform delete logic 
    }
     

    Please refer this "how to" Updating Data with a Data Set 

Reply Children