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 / October 2006

Tip: Looking for answers? Try searching our database.

BMB.CurrentChanged gets fired just once or twice?!

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Leon_Amirreza - 30 Oct 2006 15:26 GMT
I have installed a hanlder for this event:

this.BindingContext[dataSetCurriculumsCourses,
"TableInstitutes"].CurrentChanged

....

void FormCurriculumsCoursesInstitutes_CurrentItemChanged(object sender,
EventArgs e)

{

this.Text += "1";

}

at runtime just "11" will appeare in the title bar of the form no matter how
many time the current record is changed.

I dont know what is wrong!
Bart Mermuys - 30 Oct 2006 18:40 GMT
Hi,

>I have installed a hanlder for this event:
>
> this.BindingContext[dataSetCurriculumsCourses,
> "TableInstitutes"].CurrentChanged

CurrentChanged is fired when the current item changes, eg. the position
changes.
CurrentItemChanged is fired when CurrentChanged is fired and when one of the
current item properties changes.

BMB = this.BindingContext[DataSource, DataMember]

When using the BindingContext to get the BMB (CurrencyManager) then you need
to make sure you are using the exact same DataSource and DataMember (not
including any possible fieldname) as the ones you used to setup the
databinding.

Furthermore if you used a BindingSource, then hookup
BindingSource.CurrentItemChanged instead.

HTH,
Greetings

> ....
>
[quoted text clipped - 11 lines]
>
> I dont know what is wrong!

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.