I would like to add a selection checkbox into a View inside a WebPart.... a view that presently does not have a checkbox.

I know there is a SelectedFlag field in SharePoint that gives me a GUID... but I have no clue how to use it. Obviously I cannot just go myview.ViewFields.Add(SPBuiltInFieldId.SelectedFlag) because GUIDs cannot be directly added.

Is there a proper way to add a checkbox using SPBuiltInFieldId.SelectedFlag?

(I looked through my View and there is a "Selected" field, but it contains, of all things, an arrow icon. It doesn't look, or act, like the checkboxes I've seen in OOTB views, that's for sure.)


Edit: I found a "great" list that has a bunch of GUIDs. Tried to duplicate the list. Could not do that at all -- ID doesn't even contain GUIDs... it contains 0x00, 0x01... etc.

1 Answer 1


If you want the select checkbox to appear, you can enable it through the UI by enabling the tabular view. If you are doing this through code, you'd want to look at the SPView.TabularView property.

  • For whatever reason, this appears to have no effect when the view itself is inside of a webpart. It's surrounded by code modifying the number of allowed items, the fields, etc, so it's not an update problem either...
    – user22303
    Oct 17, 2014 at 16:35

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.