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. Windows Forms
  4. How to Display both image and text in a DataGridview Cell using c#.net

How to Display both image and text in a DataGridview Cell using c#.net

Scheduled Pinned Locked Moved Windows Forms
csharptutorial
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.
  • K Offline
    K Offline
    K V Sekhar
    wrote on last edited by
    #1

    Hi all, I have a requirement of displaying both image and text in a single cell of DataGridview(Windiws Application). Is this possible ,if yes please suggest me how to approach.... Thanks in advance cheers, sekhar

    D 1 Reply Last reply
    0
    • K K V Sekhar

      Hi all, I have a requirement of displaying both image and text in a single cell of DataGridview(Windiws Application). Is this possible ,if yes please suggest me how to approach.... Thanks in advance cheers, sekhar

      D Offline
      D Offline
      dan sh
      wrote on last edited by
      #2

      1. Provide padding in the TextboxColumn and then draw the image in the space created in the column using OnPaint. 2. Create your own datagridview column using the existing datagridviewtextboxcolumn class.

      The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."

      modified on Thursday, January 8, 2009 9:56 AM

      K 1 Reply Last reply
      0
      • D dan sh

        1. Provide padding in the TextboxColumn and then draw the image in the space created in the column using OnPaint. 2. Create your own datagridview column using the existing datagridviewtextboxcolumn class.

        The word "politics" describes the process so well: "Poli" in Latin meaning "many" and "tics" meaning "bloodsucking creatures."

        modified on Thursday, January 8, 2009 9:56 AM

        K Offline
        K Offline
        K V Sekhar
        wrote on last edited by
        #3

        Thanks for your suggestion

        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