I have an ItemUpdated Event bound to a list and do not want it to fire when the List item is edited in Datasheet view. Is there a way to detect if the User is editing through the Datasheet?


You have DisableEventFiring in SharePoint use EventFiringEnabled = false; I am not able to understand in what context you mean to use it but yes Event firing can be disabled Check here for more details. Alternatively you can declare a boolean variable and use as below

bool isEdited = false; 
protected override void onItemEdited(SPItemEventProperties properties)
 protected override void onItemUpdated(SPItemEventProperties properties)
      //your code
| improve this answer | |
  • yup, I know about that flag but I guess the question is more geared towards detecting Datasheet mode from the server – Michael Colbs Apr 29 '15 at 21:01

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.