Ask a questionAsk a question
 

AnswerSPGridView-Does SharePoint use this?

  • Wednesday, November 04, 2009 8:39 AMMoim Hossain Users MedalsUsers MedalsUsers MedalsUsers MedalsUsers Medals
     
    Folks,
    I 've came across to the control SPGridView. It's indeed a nice control that allows me to have the "SharePoint look & feel" for my custom data. But I really wanted to know onething, does SharePoint also uses this control to display the native SharePoint list items? Or they use something different?

    The reason I am asking this question is, SharePoint list can have too many items and still the native list web parts can display grouping over that data. But If I use the SPGridView with an ObjectDataSource or SqlDataSource then I really can't use the grouping because it's not possible for me to load entire dataset into the memory to do "data binding' in SPGridView control, and without the Databinding the grouping will not work.

    Now obviously I wanted to know the magic behind the SP implementation. How do they allow grouping for a large dataset? I don't think MS guys are loading the entire row sets of that list from the database. So how they allow grouping?

    Is there any magic lies into the SPDataSource implemention? If anyone knows something about this issue, I would be too happy to hear from you. Please share your knowledge. Thanks in Advance!

    - Moim Hossain [Please mark as answer if this post helps you]

Answers

All Replies