Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. C# or SQL [modified]

C# or SQL [modified]

Scheduled Pinned Locked Moved Web Development
csharpphpdatabaseregexperformance
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    tadhg88
    wrote on last edited by
    #1

    Hi all, I am trying to create a datagrid to look like this pic below the data is stored in 2 tables the ScoutAssignment table and Match table, my initial plan is to use sql to all the scouts that have assignments for the selected week, build the table outline using this method, fill an in memory datatable with all the matches that have assignments during the week and loop through the original table (of scouts and dates) fillin the cells where the scout has an assignment…… but Im wondering if its possible to fill entire datagrid using sql or if anyone has any better suggestions or advice it would be appreciated Thanks in advance Tim http://img168.imageshack.us/my.php?image=scoutassignmentscx2.jpg[^] -- modified at 6:25 Tuesday 7th August, 2007

    M P 2 Replies Last reply
    0
    • T tadhg88

      Hi all, I am trying to create a datagrid to look like this pic below the data is stored in 2 tables the ScoutAssignment table and Match table, my initial plan is to use sql to all the scouts that have assignments for the selected week, build the table outline using this method, fill an in memory datatable with all the matches that have assignments during the week and loop through the original table (of scouts and dates) fillin the cells where the scout has an assignment…… but Im wondering if its possible to fill entire datagrid using sql or if anyone has any better suggestions or advice it would be appreciated Thanks in advance Tim http://img168.imageshack.us/my.php?image=scoutassignmentscx2.jpg[^] -- modified at 6:25 Tuesday 7th August, 2007

      M Offline
      M Offline
      Manuel F Hernandez
      wrote on last edited by
      #2

      This sounds like a job for the GridView control. You can create a stored procedure that joins the two tables. Set the stored procedure as the selectCommand for a SQLDatasource and bind that SqlDatasource to the GridView control.

      1 Reply Last reply
      0
      • T tadhg88

        Hi all, I am trying to create a datagrid to look like this pic below the data is stored in 2 tables the ScoutAssignment table and Match table, my initial plan is to use sql to all the scouts that have assignments for the selected week, build the table outline using this method, fill an in memory datatable with all the matches that have assignments during the week and loop through the original table (of scouts and dates) fillin the cells where the scout has an assignment…… but Im wondering if its possible to fill entire datagrid using sql or if anyone has any better suggestions or advice it would be appreciated Thanks in advance Tim http://img168.imageshack.us/my.php?image=scoutassignmentscx2.jpg[^] -- modified at 6:25 Tuesday 7th August, 2007

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        tadhg88 wrote:

        [URL=http://img168.imageshack.us/my.php?image=scoutassignmentscx2.jpg\][IMG]http://img168.imageshack.us/img168/1810/scoutassignmentscx2.th.jpg\[/IMG\]\[/URL\]

        Could you do a proper clickety link so people don't have to copy and paste into their browser, like this... http://img168.imageshack.us/my.php?image=scoutassignmentscx2.jpg[^] http://img168.imageshack.us/img168/1810/scoutassignmentscx2.th.jpg[^]

        "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups