Add own ColumnHeader to an extended ListView trough the designer

F

Fabian_20

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.
 

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