Suggestion on which control to use

Last post 03-24-2008 5:57 PM by rmaiya. 3 replies.

Sort Posts:

  • Suggestion on which control to use

    03-24-2008, 2:56 PM
    • Participant
      1,607 point Participant
    • eseidel
    • Member since 10-17-2006, 2:03 PM
    • Indianapolis, Indiana
    • Posts 504

    Basically I'm looking for a crosstab control, like the gridview but with data going down instead of across.  I need to show 7 days of data, each day would be a column.  Currently im thinking of creating 7 detailsview's and sitting them side by side but I know there must be a better option.  Any ideas???

     

    Thanks,

    Eric

  • Re: Suggestion on which control to use

    03-24-2008, 3:11 PM
    • Star
      10,050 point Star
    • rmaiya
    • Member since 06-25-2007, 7:08 PM
    • Olympia, WA
    • Posts 1,559

    First of all GridView is not a Cross Tab control,  infact it is the other way round, it display data in rows. [probably you should re-phrase your question.] 

    The solution, you can use GridView and write a Cross Tab query in your stored procedure so that it gives seven columns as the out put. And use that sp data to easily bind to GridView 

    Raghu
    (MCSD.NET, MCAD.NET, MCDBA)
    [Don't forget to click on Mark as answer on the post that helped you ]
  • Re: Suggestion on which control to use

    03-24-2008, 3:16 PM
    • Participant
      1,607 point Participant
    • eseidel
    • Member since 10-17-2006, 2:03 PM
    • Indianapolis, Indiana
    • Posts 504

    Sorry for the wording.  I am looking for a crosstab control that looks similar in style to the gridview control but works on columns instead of rows.  I realize its the opposite.  I was thinking of doing a cross tab query but it would be a very nasty one because each days data contains 5 child tables with n-number of records(each day would have the same number of records though).  If I have to I will, but I thought there may be an easier solution.

  • Re: Suggestion on which control to use

    03-24-2008, 5:57 PM
    Answer
    • Star
      10,050 point Star
    • rmaiya
    • Member since 06-25-2007, 7:08 PM
    • Olympia, WA
    • Posts 1,559

    Nop... if you are trying to use simple ASP.NET controls like Repeater, GridView etc you can not do that. Either you have to go for SQL Reporting or Crystal Report or a third party controls to display your data in a Cross Tab report. So if you are not planning on other tools that I mentioned then you have to write a CrossTab query

    Raghu
    (MCSD.NET, MCAD.NET, MCDBA)
    [Don't forget to click on Mark as answer on the post that helped you ]
Page 1 of 1 (4 items)