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 / Languages / VB.NET / October 2004

Tip: Looking for answers? Try searching our database.

comboboxes

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Marcin Podle?ny - 26 Oct 2004 13:21 GMT
Hi,

I've a form with three comboboxes. Each of them contains the same data - all
cities in my country. As you see it's a lot of data so it takes a lot of
memory. I'd like to use the same datasource for all three comboboxes but
property Datasource works in different way than I want. It looks like it
copies all data to items of each combobox. So it takes more memory (3 *
items + 1 * datasource) and works slowly.

Is this possible to use (for example) one array and bind three comboboxes to
it? Items property is unfortunately ReadOnly...

Thanks
CJ Taylor - 26 Oct 2004 13:29 GMT
I can't remember if you can do this successfully with a dataview or not.
Certainly not with a single datasource, because the combo box (or any list
control) uses the .Postion property to note the cursor position.

A Dataview *might* use its own cursor, but I don't think it does (I haven't
done this in a really long time).  So you have to create the separate
dataset.  give it a shot, if the dataview doesn't work, then no.. can't do
it...

> Hi,
>
[quoted text clipped - 9 lines]
>
> Thanks

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.