Dear Forum,
I have a particular collection for which I have created a BusinessListBase. For some reason during the Update procedure the ListChanged event is being fired even though I set to false at the beginning of the procedure:
Friend Sub Update(ByVal cn As SqlConnection, ByVal parent As Object)RaiseListChangedEvents =
False ' loop through each deleted child object For Each deletedChild As Ingredient In DeletedListdeletedChild.DeleteSelf(cn)
NextDeletedList.Clear()
' loop through each non-deleted child object For Each child As Ingredient In Me If child.IsNew Thenchild.Insert(cn, parent)
Elsechild.Update(cn, parent)
End If NextRaiseListChangedEvents =
True End SubI do not want the ListChanged event to fire during DB update because there are some calculations being performed on this event that have already been performed when the user edits the list within the grid.
Could someone let me know what I am doing wrong or what to do to keep this event from firing during the update?
Thank You,
Rob
Thank you. Perfect.
(Can't believe I missed the availability of the book on 3 -- buying it now)
Copyright (c) Marimer LLC