Solved

updating a datagridview

Posted on 2014-07-26
1
269 Views
Last Modified: 2014-08-10
hi - I'm implementing a cut, copy paste routine using a DGV. I have everything working except undo and redo. the DGV is data bound to an underlying DataTable. when paste, I save the DataTable instance to a buffer DT array. this works fine. but when I go to restore the old copy of the DT, I can't get the DGV to refresh with the old data. if I look at the operating DT, it shows the correct values of the old DT, but the DGV hasn't refreshed. I'm hoping not to have to go through and manually copy everything back.
any suggestions?
thanks,
Jim
0
Comment
Question by:jdcoburn
1 Comment
 
LVL 10

Accepted Solution

by:
FamousMortimer earned 500 total points
ID: 40222626
Did you try refreshing or invalidating the datagrigview after the underlying data changed?
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
In this post we will learn how to connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

708 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now