Properly delete items from gridview

[#53022701]