L
Laurent Navarro
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
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