In C# code, I'm working with the SPGridView control to display list items from a list of type SPDocumentLibrary. It binds fine, but it looks totally plain and has basically no features. I would like it to behave (with the standard SP context menu for documents, including checkout, view, etc., and also be sortable) and look just like a regular SP document list view.

  • I've found that the SharePoint:ListView control has most of this functionality.
    – udog
    Feb 26 '14 at 23:22
  • I am also trying the same. Do you have any example?? Mar 15 '14 at 1:46
  • I could not find any examples
    – udog
    Mar 18 '14 at 14:33
  • just leave away the borders and set the width to 100%
    – Gwny
    Jun 6 '14 at 14:31
  • Do you found way to do it? Dec 9 '15 at 11:01


SP GridView Sample Code with C sharp

  • Please don't add link only answers. If the link breaks in the future, your answer is of no value - so please add context of the link in your answer here, thank you
    – Benny Skogberg
    Oct 4 '16 at 19:49

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.