473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

Add own ColumnHeader to an extended ListView trough the designer

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.

Jun 16 '06 #1
1 3532
Is your ListView.View property set to "Details"?

--
http://www.peterRitchie.com/
"Fa*******@gmx.de" 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.

Jun 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: singh | last post by:
using "Details" as a view mode in listview, but can't find an option to hide columnheader. does anyone know how to do it. thanks
4
by: Alan Seunarayan | last post by:
Hello, I have a number of ColumnHeaders that are 'hidden' (width set to zero). However, it is still possible to size them. The reason why they are hidden is to give the illusion that they do...
2
by: Anushya devi | last post by:
Hi All I used listview and tried to update it by using Addrange. When the number of items is less, it works fine.. But I need to update nearly 200,000 items and it hangs. Also i need to add...
0
by: Martin Streller | last post by:
Hello, The code below represents a simple ownerdrawn, Listview class in C#. Its purpose is to avoid the flicker of the MS ListView. So I can't fall back to their one. Does anybody know why I...
1
by: joannelai | last post by:
Hi all, In my project I have a ListView and a ColumnClick event is added to sort the clicked column. I want to have a Context Menu when the ColumnHeader is right clicked, but I find no way to...
3
by: touf | last post by:
Hi, ca we have a listView with 2 header lines eg: | country1 | country2 |... |-----------|---------------------|--- |city1|city2 |city3|city4|city5|city6|... Thanks
0
by: Meelis Lilbok | last post by:
Hi Is it possible to set listview's columnheader background image? No luck with drawcolumnheader :( Best regards; Meelis
11
by: rb | last post by:
Hi All, Is there a property or method to keep the headercolumns from being resized by the user for a listview? I am using Visual Basic in Visual Studio . net 2005 Thank you.
1
by: szuccaro | last post by:
I am reading an excel file into a datagridview and trying to perform some function based on the column header that is clicked. I currently can produce an event to occur (msgbox) but, I need to get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.