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

In sharepoint 2010 list when right click the item there will be view item in which it shows certain columns and it doesn't depends on the viewID or the default view.How they are shown the view of the item ?

share|improve this question

The properties view uses a ListFieldIterator class to go through each field and decide which to display.

It decides which columns to display columns based on

  • if the Column is Hidden
  • if the Column has the ShowInViewForm (for Display views) property
  • some other internal Voodoo

If you're looking to replicate this you can probably use the ListFieldIterator.IsFieldExcluded property

share|improve this answer

Your Answer

 
discard

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