我试图在列表中隐藏"标题"字段.这似乎不起作用:
SPList myList; ... SPField titleField = myList.Fields.GetField("Title"); //titleField.PushChangesToLists = true; <-- doesn't seem to make a difference titleField.ShowInEditForm = false; titleField.ShowInDisplayForm = false; titleField.ShowInNewForm = false; titleField.Update(); //myList.Update(); <-- make no difference
我究竟做错了什么?
试试这个:
field.Hidden = true; field.Update();