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. Can i add a background image to the Windows datagrid?

Can i add a background image to the Windows datagrid?

Scheduled Pinned Locked Moved C#
questioncsshelp
5 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.
  • R Offline
    R Offline
    RajeshGuptha
    wrote on last edited by
    #1

    hi! im trying to build a data grid which has a different appearance than the traditional one. like the header row will have a different background...how can i attain that in windows data grid? can anybody help me? Rajesh

    J 1 Reply Last reply
    0
    • R RajeshGuptha

      hi! im trying to build a data grid which has a different appearance than the traditional one. like the header row will have a different background...how can i attain that in windows data grid? can anybody help me? Rajesh

      J Offline
      J Offline
      Jim Matthews
      wrote on last edited by
      #2

      you have to subclass the existing winforms datagrid class, add the appropriate properties and draw them yourself in the paint implementation. this is not difficult, but could be time consuming depending on your own personal skill level. hope this helps. :)


      -jim

      R 1 Reply Last reply
      0
      • J Jim Matthews

        you have to subclass the existing winforms datagrid class, add the appropriate properties and draw them yourself in the paint implementation. this is not difficult, but could be time consuming depending on your own personal skill level. hope this helps. :)


        -jim

        R Offline
        R Offline
        RajeshGuptha
        wrote on last edited by
        #3

        But in that case will i be able to disable to display the extra column shown at the beginning(the one with arrow and a star)? in my design i dont want that.

        J 1 Reply Last reply
        0
        • R RajeshGuptha

          But in that case will i be able to disable to display the extra column shown at the beginning(the one with arrow and a star)? in my design i dont want that.

          J Offline
          J Offline
          Jim Matthews
          wrote on last edited by
          #4

          in that case i would recommend looking at one of the many freely available open source datagrid controls that are out there such as SourceGrid by Davide Icardi. Not sure if this is going to have all of the functionality you need, but at least it will be a starting point. You can then use the source code to help start designing a custom grid of your own, or extend it to do exactly what you need. Be sure to check the license agreement for usage restrictions. hope this helps.


          -jim

          R 1 Reply Last reply
          0
          • J Jim Matthews

            in that case i would recommend looking at one of the many freely available open source datagrid controls that are out there such as SourceGrid by Davide Icardi. Not sure if this is going to have all of the functionality you need, but at least it will be a starting point. You can then use the source code to help start designing a custom grid of your own, or extend it to do exactly what you need. Be sure to check the license agreement for usage restrictions. hope this helps.


            -jim

            R Offline
            R Offline
            RajeshGuptha
            wrote on last edited by
            #5

            thanks a lot Jim. Im sure that i can proceed on with this.

            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