SPWebPartManager.CreateWebPartFromList Method
SharePoint 2010
Creates a new Web Part that views a specified list.
| Name | Description | |
|---|---|---|
|
CreateWebPartFromList(SPList) | Creates a new Web Part that views a specified list. |
|
CreateWebPartFromList(SPList, Boolean) | Creates a new Web Part that views a specified list and optionally forces selection of the ListViewWebPart class for the default view of a calendar list. |