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
170
Blank row added when removing another row from unbound grid
posted

This is the code (within a click event of a button) I use to remove the active row

                     AssignedGrid.Rows.Remove(AssignedGrid.DisplayLayout.ActiveRow)

The grid is within an AJAX UpdatePanel. After I click the button everything else is refreshed right but now I have a blank row in the grid. Why?

  • 2501
    posted

    Hello Bernardo,

    Thank you for posting your inquiry to the Infragistics forums.  I tested the behavior you described using the attached sample and was unable to reproduce this issue.  The attached sample contains an UltraWebGrid with some rows in an UpdatePanel.  There is a button on the page and I added the code you posted in the button click. 

    Please download and test the attached sample.  Select a row and click the button.  The row will delete without leaving a blank space.  If this sample is not an exact replica of your application, please modify the sample and re-attach or post an update to let me know.

    Thank you.

    Sincerely,
    Mike D.
    Developer Support Engineer
    Infragistics
    www.infragistics.com/support

    WbGDelRw_CS.zip