user1786107
user1786107

Reputation: 3071

How do you add a list to a web part in Sharepoint 2010?

I have a web part in visual studio. The web part will contain 3 textboxes, 1 button and 1 list display.

What control do i use to display the custom list on the web part?

Upvotes: 1

Views: 658

Answers (1)

Mihir
Mihir

Reputation: 8734

If you want to display the list in your webpart you can do it form the editing the page where you want to add your web part and add from the list & libraries section of available webparts. If you want your text boxes and button and list to display on your webpart then you can do the following.

  1. Take a visual webpart in visual studio (deploy it as a farm solution).

  2. add your controls over there. If you want to display list, you can show them in a grid control.

Upvotes: 2

Related Questions