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. Web Development
  3. Master Detail CRUD using blazor

Master Detail CRUD using blazor

Scheduled Pinned Locked Moved Web Development
cssasp-netsalestutorial
6 Posts 3 Posters 3 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
    sanket164
    wrote on last edited by
    #1

    Hello All, I want to develop Master Details CRUD option. I have seen lots of examples in which developed using GRID but my requirement is different than this. Let me explain with an example -------Master Part------- Order No__________ Order Date___________ Customer_______________ ----------Details Part------------ ProductName _____{Selection}______ Rate______ Qty____ [Add] -----------{GRID}-------------- Product1 20.00 1 [EDIT] [DELETE] Product2 50.00 1 [EDIT] [DELETE] [SAVE][CANCEL] Please check this -> Example screen

    S M 2 Replies Last reply
    0
    • S sanket164

      Hello All, I want to develop Master Details CRUD option. I have seen lots of examples in which developed using GRID but my requirement is different than this. Let me explain with an example -------Master Part------- Order No__________ Order Date___________ Customer_______________ ----------Details Part------------ ProductName _____{Selection}______ Rate______ Qty____ [Add] -----------{GRID}-------------- Product1 20.00 1 [EDIT] [DELETE] Product2 50.00 1 [EDIT] [DELETE] [SAVE][CANCEL] Please check this -> Example screen

      S Offline
      S Offline
      Shaun C Curtis
      wrote on last edited by
      #2

      Hi, Have you looked at this set of articles? Building a Database Application in Blazor - Part 1 - Project Structure and Framework[^]

      S 1 Reply Last reply
      0
      • S Shaun C Curtis

        Hi, Have you looked at this set of articles? Building a Database Application in Blazor - Part 1 - Project Structure and Framework[^]

        S Offline
        S Offline
        sanket164
        wrote on last edited by
        #3

        Hello Thanks for reply. Every application has own problems and benefits.

        1 Reply Last reply
        0
        • S sanket164

          Hello All, I want to develop Master Details CRUD option. I have seen lots of examples in which developed using GRID but my requirement is different than this. Let me explain with an example -------Master Part------- Order No__________ Order Date___________ Customer_______________ ----------Details Part------------ ProductName _____{Selection}______ Rate______ Qty____ [Add] -----------{GRID}-------------- Product1 20.00 1 [EDIT] [DELETE] Product2 50.00 1 [EDIT] [DELETE] [SAVE][CANCEL] Please check this -> Example screen

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          You product selection line is not part of the detail and can be placed in the master area or as a separate area altogether, it does not participate in the master detail structure but adds to the detail.

          Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

          S 1 Reply Last reply
          0
          • M Mycroft Holmes

            You product selection line is not part of the detail and can be placed in the master area or as a separate area altogether, it does not participate in the master detail structure but adds to the detail.

            Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

            S Offline
            S Offline
            sanket164
            wrote on last edited by
            #5

            My Table Stucture look like

            OrderId int
            OrderNo string
            CustomerName string
            AddDate DateTime

            OrderDtlId int
            OrderId int(FK from OrderMaster)
            ProductId int(FK from ProductMaster)
            Qty decimal
            Rate decimal

            M 1 Reply Last reply
            0
            • S sanket164

              My Table Stucture look like

              OrderId int
              OrderNo string
              CustomerName string
              AddDate DateTime

              OrderDtlId int
              OrderId int(FK from OrderMaster)
              ProductId int(FK from ProductMaster)
              Qty decimal
              Rate decimal

              M Offline
              M Offline
              Mycroft Holmes
              wrote on last edited by
              #6

              Your table structure is correct. You need to add a detail item when the user clicks add taking the ProductId from the user selection. This needs to be done in code, not in the UI control.

              Never underestimate the power of human stupidity - RAH I'm old. I know stuff - JSOP

              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