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. DataGridView Grouping

DataGridView Grouping

Scheduled Pinned Locked Moved C#
css
2 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.
  • S Offline
    S Offline
    Syed Shahid Hussain
    wrote on last edited by
    #1

    hi I want to make grouping in the data grid view. like

    Table 1
    pk col1 col2
    1 ABC 51
    2 DEF 74

    Table 2
    pk col1 col2 col2 col3 fk(pk_table_1)
    1 abc 3 23 111 1
    2 def 3 45 74 1
    3 kki 8 23 871 2
    4 qwe 2 15 5 2
    5 eed 7 41 91 2

    Now I want to show the data in the grid but in summarized form. like only the data that is in table 1 will be displayed first and at the left most a + sign will be displayed when we press that the data of table 2 will be displayed then. Thanks

    Syed Shahid Hussain

    L 1 Reply Last reply
    0
    • S Syed Shahid Hussain

      hi I want to make grouping in the data grid view. like

      Table 1
      pk col1 col2
      1 ABC 51
      2 DEF 74

      Table 2
      pk col1 col2 col2 col3 fk(pk_table_1)
      1 abc 3 23 111 1
      2 def 3 45 74 1
      3 kki 8 23 871 2
      4 qwe 2 15 5 2
      5 eed 7 41 91 2

      Now I want to show the data in the grid but in summarized form. like only the data that is in table 1 will be displayed first and at the left most a + sign will be displayed when we press that the data of table 2 will be displayed then. Thanks

      Syed Shahid Hussain

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

      Syed Shahid Hussain wrote:

      Thanks

      There's no question in this post, that makes it somewhat harder to formulate an answer. AFAIK, the requested behaviour isn't standard available in the DataGridView. It might be best to look for a 3d-party grid that supports drill-down and grouping.

      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