locked
Gridview show more items RRS feed

  • Question

  • hi,

    if i  have 10000 items in a Gridview,

    how to show them,

    I just binding source ,the app will breakdown

    Thursday, December 6, 2012 2:19 AM

Answers

  • Hi,

    You could try to show them with virtualization. For example, use VirtualizationStackPanel or WrapGrid which support virtualization.

    You could set it as follow:

    <GridView.ItemsPanel>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel />
                    </ItemsPanelTemplate>
                </GridView.ItemsPanel>

    Obviously, there are too many items in a gridview and make the app crash.


    Aaron
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by winstead Monday, December 17, 2012 1:58 AM
    Friday, December 7, 2012 8:51 AM

All replies

  • Can you start from 100 items see if your app crash by large # of items or something else?
    Thursday, December 6, 2012 4:37 AM
  • Hi,

    You could try to show them with virtualization. For example, use VirtualizationStackPanel or WrapGrid which support virtualization.

    You could set it as follow:

    <GridView.ItemsPanel>
                    <ItemsPanelTemplate>
                        <VirtualizingStackPanel />
                    </ItemsPanelTemplate>
                </GridView.ItemsPanel>

    Obviously, there are too many items in a gridview and make the app crash.


    Aaron
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    • Marked as answer by winstead Monday, December 17, 2012 1:58 AM
    Friday, December 7, 2012 8:51 AM