Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Windows Forms / WinForm Data Binding / November 2004

Tip: Looking for answers? Try searching our database.

Datagrid does not reflect changes to bound dataset

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Peter Kenyon - 11 Nov 2004 23:18 GMT
Hi,

I am using a datagrid to display a few columns from a dataset and a "detail"
form for editing, which appears after double-clicking a row in the grid.
After the user finishes editing an item with the detail form, the changes he
has made do not show up in the datagrid even though both are bound to the
same dataset. How can I refresh the contents of the current row in the
datagrid so that the changes show up?

TIA,

Peter
Sijin Joseph - 20 Nov 2004 05:50 GMT
You can use the CurrencyManager.Refresh() method to refresh the changes

Something line

this.BindingContext[dataset,"datamember"].Refresh();

where dataset is the refernce to your dataset and datamember is the name
fo the table you are binding to.

Hope that helps.

Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

> Hi,
>
[quoted text clipped - 8 lines]
>
> Peter

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.