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

1 Answer 1


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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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