Windows Develop Bookmark and Share   
 index > Windows Forms Designer > designer on derived controls
 

designer on derived controls

I created a ListView derived control. The control has 5 columns and a number of rows. The user of my control (that is another programmer) may want to change order of columns. However when my control is placed on new form I cannot change order of columns. To be precise I can move them up and down in "ColumnHeader Collection Editor" but the ordering information is not saved anywhere. Of course I can change DisplayIndex of a particular ColumnHeader in code but having designed support for that would be better. Is it possible?
TomaszGrobelny  Thursday, June 25, 2009 9:31 PM
Hi TomaszGrobelny,

Click the "Columns" property in the propertygrid of ListView. In the popup dialog. Change each column's "DisplayIndex" can change its position in ListView. This function is supported in design time.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, June 29, 2009 3:54 AM
Hi TomaszGrobelny,

Click the "Columns" property in the propertygrid of ListView. In the popup dialog. Change each column's "DisplayIndex" can change its position in ListView. This function is supported in design time.

Sincerely,
Kira Qian
Please mark the replies as answers if they help and unmark if they don't.
Kira Qian  Monday, June 29, 2009 3:54 AM

You can use google to search for other answers

Custom Search

More Threads

• Code generation for property <xxxx> failed
• what causes PerformLayout method be serialized?
• Srollable Panel
• "Feature packed" datepicker control released!
• MDI Child not loading correct
• pre populated listview
• Derived custom control issues
• Designer Verbs for Forms
• Print setup dialog box
• Windows Forms : designerCould not be shown. dotnetfx setup messy?