Hi,
I have WebdataGrid(IG13.2) where I delete rows on click of a column(Delete column) using
grid.get_behaviors().get_editingCore().get_behaviors().get_rowDeleting().deleteRows(rows);
But when I click on the column headers in the grid, the page refreshes(using Infragistics inbuilt sorting) and all the rows including Deleted Rows are displayed.
My question here is is there a way to prevent the deleted rows from getting displayed?
And if I edit any cell, the edited value should be preserved.
P.S:I have set batch update to true and my datasource is DB2. I have also tried
grid.get_behaviors().get_editingCore().commit();
after deleting the row.
Awaiting your response.
Regards,
Mariyam.
Hello Mariyam,
Thank you for contacting Infragistics. I have some questions concerning the setup of your grid. How are you binding the data to your grid? Do you have AutoCRUD set to true or false? How do you reassign your data on postback? Do you have EnableDataViewState set to true or false?
I am binding datat using dataset which I dispose off after binding.
I have neither set AutoCRUD nor Enable DataView State. I have set Enable Ajax to true.
On Postback we retrieve data from the DB.
Any updates please?
Thank you for the update. I believe the reason you are seeing this issue is you are retrieving the data from the database on every post back. Do you put the data from the database into a datatable or directly into the grid? If you are using a datatable as a go between in the RowUpdating event you have to send the data back to the database manually.
I am following up to see if the information provided has resolved this matter.
Please let me know if I may be of further assistance with this matter.