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 2004

Tip: Looking for answers? Try searching our database.

Changing bindingcontext position based on dataview sorting.

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Mike Quernemoen - 01 Oct 2004 15:14 GMT
I've got a form with fields bound to a datatable.  The datatable is
populated from a sql server.
I've been using a next button with
form.bindingcontext("datasource","datatable").position+=1 to bind the form
to the next record I want it bound to.  That works fine.
My question is:  I want to be able to sort the records by a field based on
input from the user and then be able
to move through the records in sort order.  I've found that I can sort the
records using a dataview,
but haven't been able to turn that into moving the form through the sorted
records.
If anyone can point me in the right direction in this matter, I'd appreciate
your thoughts.
Thanks,
Mike
Mike Quernemoen - 01 Oct 2004 15:52 GMT
Well, I think I figured it out.
I've now bound the controls to the dataview instead of the datatable.
now i move the position in the dataview like this
form.bindingcontext(dataview).position+=1
Mike
> I've got a form with fields bound to a datatable.  The datatable is
> populated from a sql server.
[quoted text clipped - 11 lines]
> Thanks,
> Mike

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.