Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 988025
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T05:34:42+00:00 2026-05-16T05:34:42+00:00

We are using SharePoint 2010 Foundation. We have an item in a list that

  • 0

We are using SharePoint 2010 Foundation.

We have an item in a list that is a dropdown with values from another list.

When we access the list as a SharePoint list it works fine, we can select a value, save the list, the next time we access the list the correct value is selected.

We have programmed a form that will updated the list. When we pull up the form, select a value and save it, we can see by accessing the list directly that the value has been saved.

However, when we pull up the form again it is the first item in the list that is selected. Have tried storing the selected value is a temp variable before binding the list but have not been able to get it to work. Anyone know how to fix this?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T05:34:43+00:00Added an answer on May 16, 2026 at 5:34 am

    We found a solution.

    The trick was to get the number that is the first part of the ToString of the SPListItem, before binding the list.

    Then use that number to set the selected value after the list is bound

    Parameters:

     SPListItem currentItem, string fieldName
    

    Code:

     string selectedValue = currentItem[fieldName].ToString().Substring(0,1);
    
     //... Bind list
    
     ddlLookup.SelectedValue = selectedValue;
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using SharePoint Foundation (Sharepoint 2010) to develop a workflow in Visual Studio
My problem is this one, I am using Sharepoint 2010, I have a form
i'm using flowPlayer inside a user control in sharepoint 2010 this user control works
I've created a list using the SharePoint (MOSS 2007) Issue Tracking List. A Comments
I have my Sharepoint Server 2010 set-up and everything appears to be functioning correctly.
We are developing a system using SharePoint 2010 Foundataion. We would like to track
We are planning to create two sharepoint web applications using SharePoint 2010 Enterprise Edition.
I have installed SharePoint 2010 on a single machine in farm mode pointing to
I created a new Visual Web Part in VS 2010 (using Sharepoint Server 2010),
Is it possible to authenticate a user in SharePoint 2010 using a SAML Token

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.