81
Views
1
Comments
【OutSystems DataGrid】How to delete row selected with the checkbox

Could you please tell me how to delete row selected with the checkbox? 

The header part set as 「Entities.RowHeader.RowNumberAndCheckbox 」.

I would like to delete only the rows selected in the checkbox, but when I click delete button with cells in other rows selected ,  if I select cells in other row,this row will be deleted along with the selected rows. 

I would like to delete only the rows selected with the checkboxes, but if I click the delete button with cells in other row selected, this row will be deleted along with the selected rows. 

I don't know the cause.

I want to reflect it only on the client side, so I use OutSystemsDataGridAPI. 

When I checked the number of rows selected with GetSelectedRowsData and GetCheckedRowsData, it matched the number of rows selected in the checkbox, but if I passed RemoveSelectedRows, more rows would be deleted. 

Please tell me if you know the solution . 

thanks.


2023-05-02 10-33-02
Madhuri Patil

Hi @. (Dot),
Before deleting just add one condition like is this ID exists in GetSelectedRowsData  then delete otherwise dont delete.

I hope this will help.


Thanks,

Madhuri


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.