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. NESTED DATAGRID IN WINDOWS FORM

NESTED DATAGRID IN WINDOWS FORM

Scheduled Pinned Locked Moved C#
questioncssdatabase
5 Posts 3 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.
  • F Offline
    F Offline
    Faisal Khatri
    wrote on last edited by
    #1

    Hi I have created a datagrid and i have bound that datagrid with the result from the query. I have a table of purchase which i have bound with the datagrid. But now i want that whenever a person clicks anyof the row of purchase it must display the purchase details in the form of table or grid. How can i do that? Please hlep me KHATRI

    P V 2 Replies Last reply
    0
    • F Faisal Khatri

      Hi I have created a datagrid and i have bound that datagrid with the result from the query. I have a table of purchase which i have bound with the datagrid. But now i want that whenever a person clicks anyof the row of purchase it must display the purchase details in the form of table or grid. How can i do that? Please hlep me KHATRI

      P Offline
      P Offline
      phantanagu
      wrote on last edited by
      #2

      Hi you. You are saying about hierachical data, called master-detail data. You can completely do it. First, you make a dataset contains two table: PURCHASE and PURCHASEDETAIL. And you also make an internal relation among two tables with a "PURCHASE.ID = PURCHASEDTAIL.pID" datarelation. See next. Second, you assign Datagrid's Datasource into this dataset. That's all. It is working like you want . Hope my help.

      F 1 Reply Last reply
      0
      • P phantanagu

        Hi you. You are saying about hierachical data, called master-detail data. You can completely do it. First, you make a dataset contains two table: PURCHASE and PURCHASEDETAIL. And you also make an internal relation among two tables with a "PURCHASE.ID = PURCHASEDTAIL.pID" datarelation. See next. Second, you assign Datagrid's Datasource into this dataset. That's all. It is working like you want . Hope my help.

        F Offline
        F Offline
        Faisal Khatri
        wrote on last edited by
        #3

        Yes but how it will show in datagrd.. i mean how ill gonna implement that.. like First i m calling a Purchase table in a dataset and bounding it. Then on click it will request for the details of the table for the particular purchase id. The result will be shown in another datagrid showing heirarchial or master child relation. KHATRI

        1 Reply Last reply
        0
        • F Faisal Khatri

          Hi I have created a datagrid and i have bound that datagrid with the result from the query. I have a table of purchase which i have bound with the datagrid. But now i want that whenever a person clicks anyof the row of purchase it must display the purchase details in the form of table or grid. How can i do that? Please hlep me KHATRI

          V Offline
          V Offline
          Vinay Dornala
          wrote on last edited by
          #4

          Hi, for u r requirement pls refer following link u wwill get better idea for implementation http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c12647 I hope this will help u lot, "Winning is not our dream ,Its a habitof sucess people"

          F 1 Reply Last reply
          0
          • V Vinay Dornala

            Hi, for u r requirement pls refer following link u wwill get better idea for implementation http://www.codeguru.com/csharp/.net/net_asp/controls/article.php/c12647 I hope this will help u lot, "Winning is not our dream ,Its a habitof sucess people"

            F Offline
            F Offline
            Faisal Khatri
            wrote on last edited by
            #5

            I m not asking for ASP.NET . I am asking for Windows Form. I am not creating application for webdevlopment its basically an Windows Application. over there I have to use datagrid with nested or master child relation. KHATRI

            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