Greetings!
So it is my Problem: Delete records in the WebDataGrid. The WebDataGrid has a virtual scrolling.
I try to change your code in an example. As I need such logic of remove of a record from the WebDataGrid.But I have an exception "[MissingRecordException]: Requested record cannot be found by key". I send you your code changed by me, you can see as it works.And I need the decision of this problem. As it is logical to delete records thus if it is a lot of records in the WebDataGrid.
Exception is by virtual scrolling!!!
Best regards!
Nevermind, in my research I found the solution rfom another user:
"I set <ig:EditingCore AutoCRUD="False"> in <Behavious> and <ig:WebDataGrid EnableDataViewState="True" EnableViewState="True">. It works fine. I think maybe Infragistics has already fixed the bug because I downloaded the controls on 1/27/2011."
Hope this helps someone else in need. :)
klp0
<ig:EditingCore AutoCRUD="False"> in aspx
Provide below lines in code behind
grd.ClearDataSource();
grd.DataBind();
In grd_RowUpdating and grd_RowDeleing event after deleing or updating the row.