SitePoint Sponsor

User Tag List

Results 1 to 7 of 7
  1. #1
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    pls urgent help with dynamic gridview data presentment

    hello,

    pls, i need urgent help with how to go about this issue. students in a particular institution register for their courses per semester and per level in a particular department, and then their is need to present the registered courses in a particular format as attached in the word document.

    pls is there away to use the gridview dynamically to solve this problem i really need this help urgently

    thx guys
    Attached Files Attached Files

  2. #2
    SitePoint Evangelist
    Join Date
    Apr 2008
    Location
    Dublin, Ireland
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

  3. #3
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks for the reply, but i am not exporting to word, i am to present the data as formated in the attached word document in a gridview...

    pls any help?

  4. #4
    SitePoint Evangelist
    Join Date
    Apr 2008
    Location
    Dublin, Ireland
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oops sorry I read it wrong. This very much depends on how much of the information you will have per record or will it need subsequent database calls as you iterate through each row? In general my approach is not to use the datagrid anyway because the repeater gives me full control over the output. I would suspect you will need nestedt datagrids or repeaters to achieve what you want assuming it does require a second call to the database per row. If I was nesting a repeater it would mean getting a reference to the current row, the nested repeater and binding that to my subset of data.

  5. #5
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    ok, that strikes a chord, pls do you have any example or link on the web to help accelerate this? thx once again.

  6. #6
    SitePoint Evangelist
    Join Date
    Apr 2008
    Location
    Dublin, Ireland
    Posts
    461
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Well as I said it very much depends on how you get the data. Can the relevant information be retrieved with one query or will you have to make a subsequent query for each row? Wherever possible you should be doing it in one query. Often the requirement to make subsequent calls can be an indicator of bad db design but sometimes it's necessary.

    You don't say what language you are using but heres an example using vb.net I found - James Van Klink - Programming Codex: ASP.Net: Nested Repeaters ItemDataBound.

  7. #7
    SitePoint Enthusiast
    Join Date
    Jun 2005
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    thanks very much, will get back to you


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •