specify number of rows of grid view RRS feed

  • Question

  • Currently I am doing so by specifying height of gridview N times of grid item to get N rows. This is a very ugly way.

    Is there a better way?

    Tuesday, November 13, 2012 2:17 AM


  • Hi,

    As far as I know, there is no directly way to achieve this.
    Here are some solutions maybe you can try it.

     1. Grid paging, you need create a temp collection to binding data which the item number is the same as you wanted. Load a part of data to fill the collection and create another button to replace the data in it.
     2.  Using ISupportIncrementalLoading, you can follow the sample code
     XAML data binding sample
    Best regards,

    Jesse Jiang [MSFT]
    MSDN Community Support | Feedback to us

    • Marked as answer by Jesse Jiang Monday, November 19, 2012 5:15 AM
    Wednesday, November 14, 2012 6:59 AM