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

  • Home
  • SEARCH
  • 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 6547657
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:51:27+00:00 2026-05-25T11:51:27+00:00

I am using a DGV that has many columns. Some of the columns will

  • 0

I am using a DGV that has many columns. Some of the columns will be blank and the user will need to fill in the columns manually.

However, some of the columns that are blanks have similar values that need to be filled in.

For example, if I have this data below:

1 0201     0201R    8X2    1    1   FUJI    8MM
2 0402              8X2    1    1   FUJI    
3 0402              8X2    1    1   FUJI    
4 1650     1650C    8X2    1    1   FUJI    8MM
5 1650     1650C    8X2    1    1   FUJI    8MM

… So for row 2 and 3 there are 2 blank columns (columns 3 and 8).

So if the user enters in 0402A into row 2, column 3.. it will also be entered into row 3, column 3 since the beginning values of 0402 match. Also, the same thing will happen if the user enteres in the value 12MM into row 2, column 8 (it will be placed into row 3, column 8 if the line is matched)… Like below:

1 0201     0201R    8X2    1    1   FUJI    8MM
2 0402     0402A    8X2    1    1   FUJI    12MM     //notice that only '0402A' was entered one time.
3 0402     0402A    8X2    1    1   FUJI    12MM     //same with '12MM'
4 1650     1650C    8X2    1    1   FUJI    8MM
5 1650     1650C    8X2    1    1   FUJI    8MM

Better explanation:
The 2nd column value will be the value that is compared to every entered value. Everytime a value is entered into a cell, it will copy that value to that same column in every other row that is equal to the original 2nd column value.

QUESTION

  • Is this possible to do? How can I do this?
  • 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-25T11:51:27+00:00Added an answer on May 25, 2026 at 11:51 am

    EDIT: i have just understood that DGV == DataGridView… 🙂 i have no experience with this, but you should do something similar to this…

    private void dataGridView1_CellValueChanged( object sender, DataGridViewCellEventArgs e )
        {
            dataGridView1.CellValueChanged -= dataGridView1_CellValueChanged;
            DataGridViewRow row = dataGridView1.Rows[e.RowIndex];
            string key = row.Cells[1].Value.ToString();
    
            foreach ( DataGridViewRow affected in dataGridView1.Rows)
            {
                if ( affected.Cells[1].Value.ToString( ) == key )
                {
                    for ( int i=2; i < dataGridView1.Columns.Count; i++ )
                    {
                        affected.Cells[i].Value = row.Cells[i].Value;
                    }
                }
            }
    
            dataGridView1.CellValueChanged += dataGridView1_CellValueChanged;
        }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

so I fill my DGV with some data and set some columns invisible: var
I have a DGV that has its datasource set to a BindingList. There is
(Using WPF) In a small application that I wrote, I am using some count-down
I'm using a DGV to show a list of images with text captions as
Using Yii, I want to delete all the rows that are not from today.
Please advise me. Winforms app, C#. I have a user control (UC) that contains
using xmltextreader, how would I load a hashtable. XML: <base><user name=john>2342343</user><user name=mark>239099393</user></base> This was
Using Sql Server 2005 Profiler, what events, columns, and filters do you trace to
In order to initialize my VouchersDGV Data Grid View I'm Using the following DGV.AllowUserToDeleteRows
I am using a set of DataGridViews (dgv) to display a class's members via

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.