Solved

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

Posted on 2011-09-06
6
243 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
  • 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
Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

 
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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Latency in .net app using DB in .net 21 65
send messages to whatsapp programatically 2 47
VB.NET (2008) - Refactoring Question 2 21
VB.NET 2008 Winforms Signing 13 16
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Finds all prime numbers in a range requested and places them in a public primes() array. I've demostrated a template size of 30 (2 * 3 * 5) but larger templates can be built such 210  (2 * 3 * 5 * 7) or 2310  (2 * 3 * 5 * 7 * 11). The larger templa…

770 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