ASPxGridView - Support for SharePoint
- 2 minutes to read
The installation of DevExpress ASP.NET Controls contains a ready-to-use SPxListViewWebPart web part designed as a wrapper of the ASPxGridView control for SharePoint.
SPxListViewWebPart makes it possible to use the ASPxGridView control functionality to display and manipulate the data of any SharePoint list in the site without writing any code.
Specifically, the ASPxGridView built into SPxListViewWebPart gives your end-users callback-driven data processing capabilities such as list data sorting, grouping, filtering and summary calculation.
When inserted into a list page, the SPxListViewWebPart automatically binds to default list data passed to the page. The standard list view changing mechanism is supported, allowing end-users to easily create a custom view of a list (for instance, to apply predefined column grouping or sorting) and change the list view.
Integrating the SPxListViewWebPart in a SharePoint Environment
To insert the SPxListViewWebPart in a required page, do the following.
- Install DevExpress Web Parts in the SharePoint environment.
Activate the SPxListViewWebPart site feature by clicking Activate.
Navigate to the required SharePoint page and insert the SPxListViewWebPart via the Site Actions | Edit Page | Insert | Web Part command. The SPxListViewWebPart can be found in the "DevExpress" category folder.
The SPxListViewWebPart is bound to the default list passed to the page.
If you need to bind the SPxListViewWebPart to another list, do the following:
Invoke the web part menu by clicking a glyph and select the Edit Web Part item.
The tool pane for the SPxListViewWebPart appears. In the "List" combo box, select the list to which the SPxListViewWebPart will be bound.
ASPxGridView, which is built into SPxListViewWebPart, binds to the selected list and retrieves list columns determining their types.
The image below illustrates the result.
Using the ASPxGridView Control within the SharePoint Environment
As with all other controls in the DevExpress ASP.NET product line, the ASPxGridView control can be integrated into SharePoint sites by inserting it directly into a SharePoint page markup as an individual web control, or by creating a custom web part or visual web part. See the Developer Capabilities section of the documentation to learn more.