Pages

Friday, November 16, 2012

ListFormWebPart: ViewFlag attribute. Or How to make a form default?


List Item Forms (*.aspx file). When uploading it to the list’s SP folder and only if there is ListFormWebPart control in the file, SP adds the file to the Forms collection for the list with the following characteristics:

FormType property:
4 – Display
6 – Edit
8 – New
For values see more detailed here:

ViewFlag property – if absent then is not Default

((int)Microsoft.SharePoint.SPViewFlags.Default) == 1048576



1 comment:

  1. This kind of post really helpful to the freshers as well who has not still get advance.

    ReplyDelete