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
125
Problems with deleting rows from Ultragrid
posted

I try to delete a record from an ultragrid with this two examples:

(1)

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

(2)

ultragrid1:rows:Item[10]:Selected = true

ultragrid1:DeleteSelectedRows(false).

In both cases the last record in the ultragrid is deleted. When I select two records with the Selected method, then the last two records in the ultragrid are deleted. Somewhere the recordsscope is lost, the delete method points to the wrong record. Can anybody help me?