I am working in a custom web part for a customer and part of what i need to accomplish is creating a view for a list that i am also creating. Everything is fine until the point i want to set TablularView for that view to false. I thought it as as simple as:
SPView view = new SPView(newList, xml); newList.Views.Add(view.Title, view.ViewFields.ToStringCollection(), view.Query, view.RowLimit, view.Paged, true); newList.Views[view.Title].SetViewXml(schema); newList.Views[view.Title].TabularView = false; newList.Views[view.Title].Update();
But after debugging this part of the code TabularView stays TRUE, any hints?
Thanks a lot.