Exposing the ListViewItemCollection from a UserControl

Z

Zoury

Hi Folks!

i've made a UserControl that wraps a ListView control (and some others) and
i'd like to expose the Items and Columns properties. The problem is that
these properties Types are provided has embedded class inside the ListView
class .. i mean System.Windows.Forms.ListView.ListViewItemCollection.

so when i expose the property :
//***
public ListView.ListViewItemCollection Items
{
get {return lv.Items;}
}
//***

it works, but i don't have intellisense for this property when i use my
UserControl.

any thoughts ? is my design wrong?

Thanks a lot!
 

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

Top