Databinding to Array of objects

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi All:
I have array of objects that binds to a list box control on win form. My
problem is I do not want to display every object in the array on the list
box. Is there an event or function occurs in the data-binding object, which
allows me to control actual items that display on the screen.

Thanks in advance
DK
 
Hi,

Have you tried binding to a copy of the Array after removing the items that
you don't want?
 
Sure I can do this. But I am thinking it must have a better solution than this.
 
Hi,

It seems like a good solution to me. A better solution might be to only fill
the Array with data that you want in the first place.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top