PC Review


Reply
Thread Tools Rate Thread

Add own ColumnHeader to an extended ListView trough the designer

 
 
Fabian_20@gmx.de
Guest
Posts: n/a
 
      16th Jun 2006
Hello everybody,

sry for the bad title .

I created an extended ListView with an extended ColumnHeader. If i add
a new ColumnHeader through the designer, it appears on the left side of
the editor and i can set my own properties. But when i click the
ok-button, the code ist not generated in the for example
Form1.Designer.cs file, so the Columns won't appear in the ListView
(not at designtime nor at runtime).

I searched many hours and i thought i found the solution by adding the
designer property "[DesignerSerializationVisibility(
DesignerSerializationVisibility.Content )] ", but this wont work for
me. I don't know, what i do wrong.

Can anyone help me with this problem, show me code or links with
information?


Many thx and bye,
Fabian D.

 
Reply With Quote
 
 
 
 
=?Utf-8?B?UGV0ZXIgUml0Y2hpZQ==?=
Guest
Posts: n/a
 
      21st Jun 2006
Is your ListView.View property set to "Details"?

--
http://www.peterRitchie.com/


"(E-Mail Removed)" wrote:

> Hello everybody,
>
> sry for the bad title .
>
> I created an extended ListView with an extended ColumnHeader. If i add
> a new ColumnHeader through the designer, it appears on the left side of
> the editor and i can set my own properties. But when i click the
> ok-button, the code ist not generated in the for example
> Form1.Designer.cs file, so the Columns won't appear in the ListView
> (not at designtime nor at runtime).
>
> I searched many hours and i thought i found the solution by adding the
> designer property "[DesignerSerializationVisibility(
> DesignerSerializationVisibility.Content )] ", but this wont work for
> me. I don't know, what i do wrong.
>
> Can anyone help me with this problem, show me code or links with
> information?
>
>
> Many thx and bye,
> Fabian D.
>
>

 
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
Listview columnheader question rb Microsoft VB .NET 11 4th Aug 2006 04:15 PM
ListView ColumnHeader BackGroundImage Meelis Lilbok Microsoft VB .NET 0 29th May 2006 09:58 AM
Custom ColumnHeader in ListView =?Utf-8?B?R2lsbGVz?= Microsoft Dot NET Framework Forms 0 7th Apr 2004 03:36 PM
Listview ColumnHeader Icon? Sid Sidney Microsoft Dot NET Framework Forms 2 1st Oct 2003 02:56 PM
listView with multiline columnHeader touf Microsoft VB .NET 3 15th Sep 2003 11:04 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:57 AM.