Applies to: SharePoint Foundation 2010
An ActiveX control that works with the ListViewWebPart class to provide users with a datasheet view for editing lists in Microsoft SharePoint Foundation.
This control is defined in the STSLIST.dll file, a dynamic-link library (DLL) that is installed in the %ProgramFiles%\Microsoft Office\Office14\ directory on the client computer during Microsoft Office Setup.
var obj = new ActiveXObject('ListNet.ListNet');
In Microsoft Visual Basic Scripting Edition (VBScript), use the following to instantiate the control:
Set obj = CreateObject('ListNet.ListNet')
In both cases, the argument is the programmatic identifier (ProgId) of the control, ListNet.ListNet. For more information about ProgIds, see <ProgID> Key.
In SharePoint Foundation, when a page that contains a view of a document library opens, the EnsureListControl function in the OWS.js file is called to determine whether Microsoft Office is installed on the client computer. If it is installed, the EditInGrid function in the CORE.js file is called whenever a user clicks Edit in Datasheet on a page that displays a list. The user is redirected to a page that loads the object using the CLSID that is specified in a web.config file in Local_Drive:\Inetpub\wwwroot\wss\VirtualDirectories on the front-end web server.
The ListNet control is specified as follows in the web.config file:
<WebPartControls DatasheetControlGuid="65BCBEE4-7728-41A0-97BE-14E1CAE36AAE" />
Both OWS.js and CORE.js are located in the %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\LAYOUTS\1033 directory on each front-end web server in a SharePoint Foundation deployment.
You can create a custom control for editing SharePoint lists if it has the same ProgID (ListNet.ListNet), uses the same method or property names, and provides the same functionality as described in this reference.