Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7624197
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T04:54:00+00:00 2026-05-31T04:54:00+00:00

Today i’m trying to pass a variable between two datagrids. The first is on

  • 0

Today i’m trying to pass a variable between two datagrids.
The first is on an main form, and the second is in a dialog form.

I tried using functions and also through public variables like this:
Invoice_new (Parent FORM):

Controls:

DatagridView: invoice_items

Public WriteOnly Property ValueFromChild() As String
    Set(ByVal Value As String)
        MsgBox(Value) 'Work
        With Me.invoice_items
            .Rows.Add() 'Does not WORK
            .Item(0, 0).Value() = Value 'Does not WORK
        End With
    End Set
End Property

invoice_new_search_item (Child FORM)

Controls:

DatagridView: search_items

invoice_new.ValueFromChild() = search_items.Item(0, current_row).Value

I tried many ways to do this but I can not any solution, someone give me some idea to do this would be really grateful.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-31T04:54:01+00:00Added an answer on May 31, 2026 at 4:54 am

    You could use delegates to pass information between a main form and dialog form. For instance your variable to be used in both datagrids. I’d give this a quick google.

    A Beginner’s Guide to Delegates

    Hope this is helpful and what you are looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Today I tried using pyPdf 1.12 in a script I was writing that targets
Today is my first day ever messing with PHP or MySQL... I tried to
Today, I ran into this weird problem with a user using Mac OS X.
Today I was working on a tab navigation for a webpage. I tried the
Today, I got completely surprised when I saw that a global variable has undefined
Today I was writing some C code to sort an array of structs using
Today I tried to download EGit plug-in from eclipse.org, and waited an hour and
Today is my first day working with SQL so please bear with me for
Today while I was writing some code for two methods that shows and hides
Today, I have a problem with hosting my custom service host using custom binding

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.