SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

sorry about the title am not sure how i should name it.

I want to be able to create two columns for a list that have a division - subdivision relation.

If in the first field if i choose People the second field lists people, if i choose Animals in the first field the second one gives me a list of animals.

How can i achieve this ? It has to be in C#.

Thanks alot ;)

share|improve this question
So it has to be C# and can not be in JavaScript at all? If you could use JavaScript then this could perhaps help:… – eirikb Oct 16 '12 at 17:10
I think the first thing he gives out would be correct, i just dont know how to do it and its not described either – Dr.Denis McCracleJizz Oct 16 '12 at 17:15
up vote 2 down vote accepted

I had the same problem and I resolved it using javascript SPServices library on codeplex. Here you have link with description how to use it:

It is quite easy and fast solution you don't have be very familiar with javascript.

If you want to use C# code for it you probably have to create SharePoint custom field type.

share|improve this answer

Your Answer


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.