PC Review


Reply
Thread Tools Rate Thread

Bindling list problem with listbox

 
 
Andrew
Guest
Posts: n/a
 
      20th Jun 2006
I have created a Component called a BOConnector that implements IBindingList
so it can provide access to a list of business objects to be bound to
controls.

At design time there is no live list of objects so BOConnector creates an
internal list of one object. It needs one object because when you bind to a
grid etc at design time it needs to get a list of properties to make the
columns.

My BOConnector works just fine with grids and simple controls like edit
boxes but I have a problem with the ListBox and ComboBox.

When I connect the BOConnector to the ListBox.DataSource it seems to create
a copy of the internal business object and try to save it into its
ListBox.Items in the form definition. I seem to see what is going on here,
it is taking a copy of the data and loading it into its Items. But why is
it doing this at design time? And the complex nature of my business object
means this messes up the form totally.

My first thought is to create a descendant of the ListBox and ComboBox and
make sure it does not copy items from the DataSource to the Items list at
design time.

Has anyone got any ideas?

--
Andrew Cutforth - AJC Software - www.ajcsoft.com
The best folder synchronize and directory compare tool available.
AJC Active Backup instantly archives every file you edit giving you
unlimited undo and automatic revision control. Never lose your data again.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with ListBox, List Index donwb Microsoft Excel Programming 2 12th Apr 2009 08:50 AM
Problem accessing the LIST property of a listbox John T Ingato Microsoft Access Queries 1 27th Nov 2006 09:50 AM
Binding list problem with listbox Andrew Microsoft Dot NET Framework Forms 2 24th Jun 2006 09:09 PM
Listbox Add to list Hank Microsoft Excel Programming 3 9th Sep 2004 03:10 PM
listbox.value not equal to listbox.list(listbox.listindex,0) ARB Microsoft Excel Programming 0 22nd Oct 2003 12:46 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:58 AM.