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 748307
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T14:18:20+00:00 2026-05-14T14:18:20+00:00

How do I pass a row information from my class to a grid in

  • 0

How do I pass a row information from my class to a grid in the windows form of my application? The row information changes every now and then and I need to pass this updated information to the form

  • 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-14T14:18:21+00:00Added an answer on May 14, 2026 at 2:18 pm

    You can expose an event in your class that the form class can subscribe to. When that event is triggered the form can update the UI as needed. For example:

    class ChildForm : Form
    {
        public event EventHandler TextChanged;
    
        public string NewText { get { return textBox1.Text; } }
    
        void textBox1_TextChanged( object sender, EventArgs e )
        {
            EventHandler del = TextChanged;
            if( del != null )
            {
                del( this, e );
            }
        }
    }
    
    class MainForm : Form
    {  
        void Foo( )
        {
            using( ChildForm frm = new ChildForm )
            {
                frm.TextChanged += (object sender, EventArgs e) => { label1.Text = frm.NewText; };
                frm.ShowDialog( );
            }
        }
    }
    

    You could actually just pass the TextBox.TextChanged event right no through in this example.

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

Sidebar

Related Questions

How can I pass the result from a scalar [single row, single value] query
I have a form that will be populated by a bunch of information from
I m trying to select rows/columns using vba. I want to pass row numbers
I would like to ask whats the difference between for row in session.Query(Model1): pass
How can I pass a parameter from batch to vbscript? My batch script sends
I have a simple span like so <span class=action removeAction>Remove</span> This span is within
I have a VB.net WPF application that creates a list from a databind. For
Is this login system secure ? if ($_POST[$submit]){ $user = $_POST[$user]; $pass = $_POST[$pass];
I am trying to pass some information between a subview and a parentview on
in Delphi 7 , declared an class and created a class from it, (in

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.