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. how could I print or save datagrid view records?

how could I print or save datagrid view records?

Scheduled Pinned Locked Moved C#
cssquestion
4 Posts 4 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.
  • R Offline
    R Offline
    ronakT
    wrote on last edited by
    #1

    I want to print my search result or save it showing in the data grid view.how I could do this?

    D S D 3 Replies Last reply
    0
    • R ronakT

      I want to print my search result or save it showing in the data grid view.how I could do this?

      D Offline
      D Offline
      Dan Mos
      wrote on last edited by
      #2

      For the printing I'm out. It's very hard(lots of work) to make a professional printing. For saving there are lots of ansewers. You could save it to a *.CSV file. Or to Excel or pdf. For excel this article is all about exporting and formatting the datas from the grid view. For PDF this one. And of course many other options. [Edit]When it comes to printing I always rely on external programs like Excel or FoxItReader/AcrobatReader or... . I found it easier to create small utilities that export a datagrid or a List<T> or... to Excel or PDF or ... than creating a printing solution. Sure it takes some time o create the *.dll(s) responsible for the generic export but after words you just call .Export() and you're done. [/Edit]

      1 Reply Last reply
      0
      • R ronakT

        I want to print my search result or save it showing in the data grid view.how I could do this?

        S Offline
        S Offline
        Sandeep Mewara
        wrote on last edited by
        #3

        Why posting at two places? For printing Datagrid: MSDN:Code: Printing a DataGrid (Visual C#)[^]

        1 Reply Last reply
        0
        • R ronakT

          I want to print my search result or save it showing in the data grid view.how I could do this?

          D Offline
          D Offline
          David MacDermot
          wrote on last edited by
          #4

          Try Another DataGridView Printer[^]

          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