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. Updating one form through another forms

Updating one form through another forms

Scheduled Pinned Locked Moved C#
csharpquestion
11 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.
  • R Offline
    R Offline
    Rahul DSG
    wrote on last edited by
    #1

    hello... i am developing a C# window based application.i have a form(view Item) that contain a datagridview and a button. datagridview shows the item information and at the button click a new form(Add Item) opened by which user can add the item information. All i need to do is after filling the item information when we click the save button the datagridview must be updated. How can i do this.

    B C 2 Replies Last reply
    0
    • R Rahul DSG

      hello... i am developing a C# window based application.i have a form(view Item) that contain a datagridview and a button. datagridview shows the item information and at the button click a new form(Add Item) opened by which user can add the item information. All i need to do is after filling the item information when we click the save button the datagridview must be updated. How can i do this.

      B Offline
      B Offline
      Blue_Boy
      wrote on last edited by
      #2

      Bind daatagridview with select command after you insret new item.


      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

      R 1 Reply Last reply
      0
      • B Blue_Boy

        Bind daatagridview with select command after you insret new item.


        I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

        R Offline
        R Offline
        Rahul DSG
        wrote on last edited by
        #3

        Its not Like that......... datagridview is on a form named ViewItem and we want to update this datgridview through a button that is on another form name AddItem...

        B 1 Reply Last reply
        0
        • R Rahul DSG

          Its not Like that......... datagridview is on a form named ViewItem and we want to update this datgridview through a button that is on another form name AddItem...

          B Offline
          B Offline
          Blue_Boy
          wrote on last edited by
          #4

          In dataGeidView set property Modifiers to true and in form AddItem bind datagridview which is in form ViewItem.


          I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

          R 1 Reply Last reply
          0
          • R Rahul DSG

            hello... i am developing a C# window based application.i have a form(view Item) that contain a datagridview and a button. datagridview shows the item information and at the button click a new form(Add Item) opened by which user can add the item information. All i need to do is after filling the item information when we click the save button the datagridview must be updated. How can i do this.

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            Use delegates to cause events to happen between forms.

            Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

            R 1 Reply Last reply
            0
            • B Blue_Boy

              In dataGeidView set property Modifiers to true and in form AddItem bind datagridview which is in form ViewItem.


              I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

              R Offline
              R Offline
              Rahul DSG
              wrote on last edited by
              #6

              datagridview having property Public,Private,internal,internalProcted one thing that can be matters is The viewitem form is a MDIChild Form. but the form Additem Is not a MDI form..ok

              B 1 Reply Last reply
              0
              • R Rahul DSG

                datagridview having property Public,Private,internal,internalProcted one thing that can be matters is The viewitem form is a MDIChild Form. but the form Additem Is not a MDI form..ok

                B Offline
                B Offline
                Blue_Boy
                wrote on last edited by
                #7

                merahul wrote:

                datagridview having property Public,Private,internal,internalProcted

                You are right,sorry it was my mistake to set Modifiers to true,I wanted write Public but not true.


                I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

                R 1 Reply Last reply
                0
                • C Christian Graus

                  Use delegates to cause events to happen between forms.

                  Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                  R Offline
                  R Offline
                  Rahul DSG
                  wrote on last edited by
                  #8

                  how can i use the delegates.tell me in detail or any example...

                  B C 2 Replies Last reply
                  0
                  • B Blue_Boy

                    merahul wrote:

                    datagridview having property Public,Private,internal,internalProcted

                    You are right,sorry it was my mistake to set Modifiers to true,I wanted write Public but not true.


                    I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

                    R Offline
                    R Offline
                    Rahul DSG
                    wrote on last edited by
                    #9

                    I tried but its not working...

                    1 Reply Last reply
                    0
                    • R Rahul DSG

                      how can i use the delegates.tell me in detail or any example...

                      B Offline
                      B Offline
                      Blue_Boy
                      wrote on last edited by
                      #10

                      check this link[^] also check this google result[^]


                      I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

                      1 Reply Last reply
                      0
                      • R Rahul DSG

                        how can i use the delegates.tell me in detail or any example...

                        C Offline
                        C Offline
                        Christian Graus
                        wrote on last edited by
                        #11

                        I like to give just the keywords. Anyone with any chance of ever becoming a programmer, should be able to type 'C# delegate' into google and find tons of articles to read.

                        Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

                        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