Solved

Display the whole caption in the view List of the listview.

Posted on 2011-09-06
6
247 Views
Last Modified: 2013-12-17
Dear Experts,

I have a listview with 3 columns called colCaption, colContent and colCreation.
And 3 buttons on my form. The 3 buttons are for the diffirent view of the listview
(see code-section).

But my listview doesn't display the whole name in view List (see picture).

What can I do about this?

Greetings,

Peter Kiers



//*-----------------------------------------------------------*//
        private void tbLargeIc_Click(object sender, EventArgs e)
        {
            lvNotes.View = View.LargeIcon;
        }
        //*-----------------------------------------------------------*//
        private void tbSmalIc_Click(object sender, EventArgs e)
        {
            lvNotes.View = View.SmallIcon;
        }
        //*-----------------------------------------------------------*//
        private void tbList_Click(object sender, EventArgs e)
        {
            lvNotes.View = View.List;
        }
        //*-----------------------------------------------------------*//

Open in new window

Example1.jpg
0
Comment
Question by:peterkiers
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 44

Expert Comment

by:AndyAinscow
ID: 36489167
The column is too narrow - widen the column.
0
 
LVL 1

Author Comment

by:peterkiers
ID: 36489253
Isn't possible to autosize the column.

Peter
0
 
LVL 44

Accepted Solution

by:
AndyAinscow earned 500 total points
ID: 36489374
Setting the width to -2 should perform an auto resize on the column
0
Revamp Your Training Process

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action.

 
LVL 1

Author Comment

by:peterkiers
ID: 36489401
be back later
0
 
LVL 1

Author Comment

by:peterkiers
ID: 36489539
Hmm, still the same problem.

Peter
0
 
LVL 17

Expert Comment

by:Carlos Villegas
ID: 36491076
Also you have this method:
MyListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);

Open in new window

and:
MyListView.AutoResizeColumn(...);

Open in new window


Regards.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

This document covers how to connect to SQL Server and browse its contents.  It is meant for those new to Visual Studio and/or working with Microsoft SQL Server.  It is not a guide to building SQL Server database connections in your code.  This is mo…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

752 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question