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. showing more than one row in a single cell in datagridview

showing more than one row in a single cell in datagridview

Scheduled Pinned Locked Moved C#
comtutorial
6 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.
  • E Offline
    E Offline
    Erdinc27
    wrote on last edited by
    #1

    hey guys..i want to show 4 or 5 rows in a single cell..for example i have a firm name and it has 5 phone numbers at last.. the thing i want to do is when i list the firm names i want that kind of firm name will be written in a cell and in next cell its phone number will be listed..how i can do that something like that..

    vemedya.com

    L 1 Reply Last reply
    0
    • E Erdinc27

      hey guys..i want to show 4 or 5 rows in a single cell..for example i have a firm name and it has 5 phone numbers at last.. the thing i want to do is when i list the firm names i want that kind of firm name will be written in a cell and in next cell its phone number will be listed..how i can do that something like that..

      vemedya.com

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      erdinc27 wrote:

      i want to show 4 or 5 rows in a single cell

      Add 5 rows, and owner-draw your rows. Don't paint the borders on the "inner" rows, and you're set.

      I are Troll :suss:

      E 1 Reply Last reply
      0
      • L Lost User

        erdinc27 wrote:

        i want to show 4 or 5 rows in a single cell

        Add 5 rows, and owner-draw your rows. Don't paint the borders on the "inner" rows, and you're set.

        I are Troll :suss:

        E Offline
        E Offline
        Erdinc27
        wrote on last edited by
        #3

        hey friend..thanks for the reply..i tried but i couldnt find an owner-draw in properties or where i should set it ?

        vemedya.com

        L 1 Reply Last reply
        0
        • E Erdinc27

          hey friend..thanks for the reply..i tried but i couldnt find an owner-draw in properties or where i should set it ?

          vemedya.com

          L Offline
          L Offline
          Lost User
          wrote on last edited by
          #4

          It's not a property, it's a technique. It's described here[^] :)

          I are Troll :suss:

          E 1 Reply Last reply
          0
          • L Lost User

            It's not a property, it's a technique. It's described here[^] :)

            I are Troll :suss:

            E Offline
            E Offline
            Erdinc27
            wrote on last edited by
            #5

            hey friend..i tried that codes and as i understand here some columns are hidden only or i am wrong ?

            vemedya.com

            modified on Thursday, December 23, 2010 3:50 AM

            L 1 Reply Last reply
            0
            • E Erdinc27

              hey friend..i tried that codes and as i understand here some columns are hidden only or i am wrong ?

              vemedya.com

              modified on Thursday, December 23, 2010 3:50 AM

              L Offline
              L Offline
              Lost User
              wrote on last edited by
              #6

              erdinc27 wrote:

              hey friend..i tried that codes and as i understand here some columns are hidden only or i am wrong ?

              Nope, you're right. You'd hide the borders of the cells that you want to merge :thumbsup:

              I are Troll :suss:

              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