Posts Tagged ‘SPList’

Populate a drop-down list with SharePoint list values

October 25, 2012 Leave a comment

This video will demonstrate how to populate a drop down list control with SharePoint list column values. I’ve created a visual web part in Visual Studio 2010 and used the sever object model to demonstrate this. However, you can populate a drop down list with the client object model if you prefer.

Get the code


Populating a drop-down with list values using C# for SharePoint 2010

October 12, 2012 Leave a comment

  • Finds the list “My Tasks”
  • Gets all items from the “Title” column in the “My Task” lists
  • Uses a foreach loop to add all of the “Title” columns values to a drop-down.

Watch the video to see how it works.

%d bloggers like this: