tags:

views:

122

answers:

0

I've written a completely new page that uses Sharepoint's ListFieldIterator. I would like to exclude few fields from the view and I've found a solution using ExcludeFields but it simply doesn't work. The control always displays all fields, nevermind what's in ExcludeFields property. I couldn't find anyone complaining about such a problem on the internet. There's the code (nothing fancy):

<Sharepoint:ListFieldIterator ID="lfiItemDetails" ControlMode="Display"  runat="server" ExcludeFields="TestId"  />

ListId and ItemId are set programmatically in OnInit.