I would like to use some JavaScript in 'Edit in DataSheet' mode to check a value and prompt a user to enter some text.

Is this possible?

2 Answers 2


I'm sorry but you can't. The DataSheet mode uses a "SEALED" ActiveX Control. You have no control over the markup of this control(use IE Dev Toolbar and check it out) in order to control client side behaviour.

  • hm.. thanks will check it out with IE DevTool Toolbar
    – naijacoder
    Jul 28, 2011 at 0:27
  • Hi There. To meet the needs of your requirement, I suggest using some sort of a Databound AJAX or ASP.NET Control. Obviously you need to bind the control to your Sharepoint list using .Net or the Sharepoint Client OM.
    – Fox
    Jul 29, 2011 at 7:40

In SP2013 you can run javascript on top of datasheet view.

function CodeToRun(){//code here}

ExecuteOrDelayUntilScriptLoaded(CodeToRun, "callout.js");

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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