Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

I am creating a LookUp Column Programmatically for a custom list which is already there, and trying to change the property shown in attached picture using C#, but I couldn't figure out whats the name of the property or any code to change it.

If I know the name of the property, then I can use method

"SetCustomProperty(property name, value)"

I am using Moss for Dev.

Cheers enter image description here

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

You are looking for the SPFieldLookup.LookupField Property.

However, this property is write-once. If you try to change it after it has been set, you will get an exception.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.