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
185
Inserting rows seems to overwrite existing rows
posted

I have on the InitializeRow event of the grid to insert a row I am programatically creating.

I am inserting the row at the current row's index like

UltraWebGrid1.Rows.Insert(e.Row.Index, ugr);

It seems to be inserting the row I am programatically and overwriting the row at the index I am specifying.

What am I doing wrong?

 

Thanks

Parents
No Data
Reply
  • 4555
    posted

    Hi Jack,

    You can use the pageload event to add or insert the row after you databind. Do not use the InitialzeRow event to add the row. The event fires for each row when you bind the grid and this can cause conflicts in creating the rows.

    Magued

     

Children
No Data