Windows Develop Bookmark and Share   
 index > Windows Forms Designer > ListView columns property is readonly and disabled in Form designer
 

ListView columns property is readonly and disabled in Form designer

When I inherit a form with the listview, the ListView Columns property is getting disabled and readonly.

Could anyone please explain over this behaviour of form designer.

Steps to reproduce this in VS2005:

Create a windows form (form1) and place a ListView in it. Change the ListView access modifier to protected or public.

Create another windows form (form2) inheriting form1 andcheck the ListView Columns property.

It's readonly and disable.

schalla  Monday, July 23, 2007 11:59 AM

Hi schalla,

It is because that the Form2 cannot get access to the columns which have been added to the ListView. If you leave the columns blank in the Form1 or modify them to protected or public, you can edit it in Form2.

Hope this helps.

Regards

Rong-Chun Zhang  Wednesday, July 25, 2007 2:06 AM

Hi schalla,

It is because that the Form2 cannot get access to the columns which have been added to the ListView. If you leave the columns blank in the Form1 or modify them to protected or public, you can edit it in Form2.

Hope this helps.

Regards

Rong-Chun Zhang  Wednesday, July 25, 2007 2:06 AM

You can use google to search for other answers

Custom Search

More Threads

• How to put a control beside a TabControl?
• Is there any way to change the coordinate origin of a form away from the top left?
• DataGridView SelectionChanged event fired 3 times
• Custom UITypeEditor not working for properties of type "System.Windows.Forms.Control"
• Hide the first Column
• creating outlook style combox
• Creating Custom Collections for Custom Control inheriting from DataGridView
• Importing ActiveX Controls into .NET
• VS2008/VB: Dam* forms designer corrupted again! DataMember property not found! Whyyyyyy?
• How do they make these kind of Interfaces?