locked
Grid

    Question

  • I have a grid that I need to fill programatically. Does anybody know how to do that?

     

    P.S.: I have to know how to set/get an object at a specific row and column.

     

    Thank you very much

    Monday, January 30, 2012 2:07 PM

Answers

  • Hi W,

    It sounds like you want to use a ListView with the GridView layout:

     data-win-options="{layout: {type: WinJS.UI.GridViewLayout}}"

    There are a bunch of samples that show how to bind to a list view.

    This quickstart should give you the basic skills you need: http://msdn.microsoft.com/en-us/library/windows/apps/hh465496.aspx

    The go to the samples section and see if any of the ListView samples fit the bill.  Also the Grid Application template when you create a new project shows using a gridview and how to bind data to it.

    -Jeff


    Jeff Sanders (MSFT)
    Monday, January 30, 2012 4:43 PM
    Moderator