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. General Programming
  3. C#
  4. displaying database query result in reports

displaying database query result in reports

Scheduled Pinned Locked Moved C#
databasequestion
3 Posts 2 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.
  • M Offline
    M Offline
    Mubeen asim
    wrote on last edited by
    #1

    hello... i have a datagrid view which takes a query from the database and displayes some data. not is it possible to display the same datagridview contents in a report... ??? thankyou...

    W 1 Reply Last reply
    0
    • M Mubeen asim

      hello... i have a datagrid view which takes a query from the database and displayes some data. not is it possible to display the same datagridview contents in a report... ??? thankyou...

      W Offline
      W Offline
      Wendelius
      wrote on last edited by
      #2

      max.4u wrote:

      i have a datagrid view which takes a query from the database and displayes some data

      Does your datagrid have a datatable as a datasource?

      max.4u wrote:

      is it possible to display the same datagridview contents in a report

      If it does, you can use that datatable (or dataset) as a source for Reporting Services or Crystal Reports

      The need to optimize rises from a bad design.My articles[^]

      M 1 Reply Last reply
      0
      • W Wendelius

        max.4u wrote:

        i have a datagrid view which takes a query from the database and displayes some data

        Does your datagrid have a datatable as a datasource?

        max.4u wrote:

        is it possible to display the same datagridview contents in a report

        If it does, you can use that datatable (or dataset) as a source for Reporting Services or Crystal Reports

        The need to optimize rises from a bad design.My articles[^]

        M Offline
        M Offline
        Mubeen asim
        wrote on last edited by
        #3

        my datagridview has a dataset. i tried by adding the dataset to the crystal reports from the wizard and its showing the data in the dataset. but all i need is that my dataset is having a query which shows only a part of the data rather than all the data in the database. so i need a way to call the query from the dataset.. thankyou..

        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