Jul 7, 2010

Custom list forms and data views

If you create a custom form for displaying or editing a list item, you won't be able to view the author or editor fields except in the Sharepoint:CreatedModifiedInfo control.

This is because the SPDataSource created uses the ListItem mode which hides certain fields. If you change the mode to List, you'll get all the fields.

Keep in mind you'll have to add a parameter ItemId to your selectcommand for the SPDatasource and correct the view CAML accordingly.

No comments:

Post a Comment