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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T05:52:19+00:00 2026-05-27T05:52:19+00:00

Possible Duplicate: simple DataGridView refresh question I have a mainForm which has a DataGridView

  • 0

Possible Duplicate:
simple DataGridView refresh question

I have a mainForm which has a DataGridView which has a bunch of databound items from a List. From there I can edit a selected row in the DataGridView (and the list obviously) by opening up a new form and changing the content using text boxes and such. The editing is working fine, however, once I close the edit form, the datagridview is not refreshing? In order to view the updated items I have to reload the items from the list.

At the moment I’m doing this in the edit form during the exit button click event but to no avail:

            MessageBox.Show("Client successfully edited");            
            mForm.DataGridViewProp.EndEdit(); //dgv property within the mForm
            mForm.DataGridViewProp.Refresh(); //dgv property within the mForm
            mForm.DataPanel.Invalidate(); //the panel the dgv is in
            mForm.DataPanel.Refresh(); //the panel the dgv is in
            this.Close();

Where mForm is an instance of the main form:

            private mainForm mForm = new mainForm();

I repeat, the edit is working 100% fine, it’s simply not refreshing the DGV.

Any help is greatly appreciated.

Thanks

  • 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-27T05:52:20+00:00Added an answer on May 27, 2026 at 5:52 am

    I think You need to bind the gridview after changing it.

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

Sidebar

Related Questions

Possible Duplicate: convert month from name to number I have a simple (yet interesting)
Possible Duplicate: How to render PDF in Android My question is just simple. which
Possible Duplicate: JavaScript arrays braces vs brackets I have a simple question that I
Possible Duplicate: C/C++ line number Hi, I have a simple error manager class that
Possible Duplicate: PHP: different quotes? Simple question: What is the difference between ' and
Possible Duplicate: Where do I find the current {X} standard? I have a simple
Possible Duplicate: Simple PHP Mailer Script i run a small website and we have
Possible Duplicate: Simple Random Samples from a (My)Sql database Hi! Let say that I
Possible Duplicate: Convert std::string to const char* or char* Simple question but I'm new
Possible Duplicate: Getting Filename from file descriptor in C Is there a simple and

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.