Problems with deleting rows from ultragrid

Posted by ThijsSchoemaker on 14-Oct-2009 06:36

Hi,

I want to delete a row from an UltraGrid with the following code:

    

     ultragrid1:rows:Item[1]:Selected = true.

     ultragrid1:DeleteSelectedRows(false).

However, when I try this, the last row from the UltraGrid is removed. Also when I try this:

     ultragrid1:rows:Item[1]:Delete()

the last row is deleted from the grid.

Does anyone has an idea? Somehow the delete method is pointing to the wrong record, but I don't know how to fix this.

Any help appreciated!

Kind regards,

Thijs Schoemaker

All Replies

Posted by Håvard Danielsen on 16-Oct-2009 11:09

ThijsSchoemaker wrote:

Hi,

I want to delete a row from an UltraGrid with the following code:

     ultragrid1:rows:Item[1]:Selected = true.

     ultragrid1:DeleteSelectedRows(false).

However, when I try this, the last row from the UltraGrid is removed. Also when I try this:

     ultragrid1:rows:Item[1]:Delete()

the last row is deleted from the grid.

Does anyone has an idea? Somehow the delete method is pointing to the wrong record, but I don't know how to fix this.

Any help appreciated!

Kind regards,

Thijs Schoemaker

Hi, I can only confirm that I see the same behavior. I suggest you report this to Support as it does not seem right.

This thread is closed