Create Repeating DataGrid at Runtime

Last post 02-13-2008 4:03 PM by timwilson. 1 replies.

Sort Posts:

  • Create Repeating DataGrid at Runtime

    02-13-2008, 11:04 AM
    • Loading...
    • timwilson
    • Joined on 06-15-2006, 1:43 PM
    • Lawrenceville, GA
    • Posts 115

    I need to repeat a datagrid at runtime based on how much data and what data is being pulled from the database.

    What I am trying to do is there could be multiple headings with multiple lines of data under each one.  So basically a datagrid, but I don't know until runtime how many of these headings there will be.

    My thoughts are at the basic level I could create 4 or 5 datagrids on the page and only show the ones that need to be shown, however I don't want to have any limit to how many there can be.

    I have read about creating the datagrid on the fly but don't know where to start.

    I also read in a thread out on the internet through Google about using a repeater with a datagrid in the ItemTemplate, but there was no example so I really again don't know where to start.

    I am using vb.net

    Thanks for any ideas to get me started!

    Tim

    Filed under: , ,
  • Re: Create Repeating DataGrid at Runtime

    02-13-2008, 4:03 PM
    Answer
    • Loading...
    • timwilson
    • Joined on 06-15-2006, 1:43 PM
    • Lawrenceville, GA
    • Posts 115

    Nevermind -

    I found what I needed to get started over here >> http://forums.asp.net/p/929884/1088870.aspx#1088870

    Thanks,

    Tim

Page 1 of 1 (2 items)
Microsoft Communities
Page view counter