Subscribe

Entries from April 2008

Con-view-sed

Date April 9, 2008

You might think this would be the correct way to add a field to a list default view programmatically: string fieldInternalName = "MyField"; list.DefaultView.ViewFields.Add(fieldInternalName); list.DefaultView.Update(); You’d be wrong. This won’t work. You might then try to update the list, or try to pass in the field itself to the Add method instead of the internal […]