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. working with datagrids in Windows Forms [modified]

working with datagrids in Windows Forms [modified]

Scheduled Pinned Locked Moved C#
salescsharpwinformshelpquestion
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
    Rocky
    wrote on last edited by
    #1

    well I just wanted to know, Can u place another datagrid inside one datagrid. I'm talking abt System.Windows.Forms here. the other thing is that I wanted to do that bcz I wanted to display and receive data for a sales form. It has dat comming from 5 related tables. I had this idea but can any one of u give me some better idea of making a v user friendly interface. the tables are Prodline, prodmodel, Bill, purchase and customer. Its basically for a coomputer shop. Can Anyone help? I'm working in .net 1.1 mind u

    -- modified at 8:40 Saturday 22nd July, 2006

    I 1 Reply Last reply
    0
    • R Rocky

      well I just wanted to know, Can u place another datagrid inside one datagrid. I'm talking abt System.Windows.Forms here. the other thing is that I wanted to do that bcz I wanted to display and receive data for a sales form. It has dat comming from 5 related tables. I had this idea but can any one of u give me some better idea of making a v user friendly interface. the tables are Prodline, prodmodel, Bill, purchase and customer. Its basically for a coomputer shop. Can Anyone help? I'm working in .net 1.1 mind u

      -- modified at 8:40 Saturday 22nd July, 2006

      I Offline
      I Offline
      Igor Sukhov
      wrote on last edited by
      #2

      Why do you need "nested datagrids" at the first place ? Believe me, users hates anything that doesn't not comply with their expectations and giving them that kind of interface won't take you to the right place. Instead of creating a mess from the five tables on the one form I would consider adding a buttons/hyperlinks inside of the data rows. Clicking on particular button user navigates to the new form (or opens a e.g. combobox) with the data from linked table (prodline, prodmodel, etc).

      Best regards, ----------- Igor Sukhovhttp://sukhov.net

      R 1 Reply Last reply
      0
      • I Igor Sukhov

        Why do you need "nested datagrids" at the first place ? Believe me, users hates anything that doesn't not comply with their expectations and giving them that kind of interface won't take you to the right place. Instead of creating a mess from the five tables on the one form I would consider adding a buttons/hyperlinks inside of the data rows. Clicking on particular button user navigates to the new form (or opens a e.g. combobox) with the data from linked table (prodline, prodmodel, etc).

        Best regards, ----------- Igor Sukhovhttp://sukhov.net

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

        Many thanks. I was also thinking on almost teh same lines but can u tell me if we can make combo boxed inside of datagrid column.

        I 1 Reply Last reply
        0
        • R Rocky

          Many thanks. I was also thinking on almost teh same lines but can u tell me if we can make combo boxed inside of datagrid column.

          I Offline
          I Offline
          Igor Sukhov
          wrote on last edited by
          #4

          To put a combo box into a datagrid you should specify that particular columns (which you'd like to be combobox-enabled) should be created using the DataGridComboBoxColumnStyle.

          Best regards, ----------- Igor Sukhovhttp://sukhov.net

          R 1 Reply Last reply
          0
          • I Igor Sukhov

            To put a combo box into a datagrid you should specify that particular columns (which you'd like to be combobox-enabled) should be created using the DataGridComboBoxColumnStyle.

            Best regards, ----------- Igor Sukhovhttp://sukhov.net

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

            well I'm working in .Net version 1.1 which I think doesnt have anything such as DataGridComboBoxColumnStyle so what can I do now...

            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