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

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

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