ListView in a UserControl
- From: "Laurent Navarro" <yop@xxxxxxx>
- Date: Thu, 10 Aug 2006 15:57:37 +0200
Hello,
I'm creating a control including a listview. I would like to be able to
set the columns through the Design Tool in Visual Studio, so I created a
parameter to access the columns of my listview:
private ListView.ColumnHeaderCollection myColumns
{
get
{
return(this.myListView.Columns);
}
set
{
this.myListView.Columns.Clear();
foreach(ColumnsHeader column in value)
{
this.myListView.Columns.add(column);
}
}
Of course this is not working, I can insert my columns in the designer,
but when I launch my application, the collection is empty. I'm sure what I
did is dirty, but I don't know what to do... If someone has a clue...
Thank !
Laurent
.
- Follow-Ups:
- Re: ListView in a UserControl
- From: Bruce Wood
- Re: ListView in a UserControl
- From: Nicholas Paldino [.NET/C# MVP]
- Re: ListView in a UserControl
- Prev by Date: Re: Active window title
- Next by Date: Receiving Email Attachments?
- Previous by thread: SqlDataReader Stored Procedure
- Next by thread: Re: ListView in a UserControl
- Index(es):
Relevant Pages
|
Loading