• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 254
  • Last Modified:

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

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
peterkiers
Asked:
peterkiers
  • 3
  • 2
1 Solution
 
AndyAinscowFreelance programmer / ConsultantCommented:
The column is too narrow - widen the column.
0
 
peterkiersAuthor Commented:
Isn't possible to autosize the column.

Peter
0
 
AndyAinscowFreelance programmer / ConsultantCommented:
Setting the width to -2 should perform an auto resize on the column
0
Never miss a deadline with monday.com

The revolutionary project management tool is here!   Plan visually with a single glance and make sure your projects get done.

 
peterkiersAuthor Commented:
be back later
0
 
peterkiersAuthor Commented:
Hmm, still the same problem.

Peter
0
 
Carlos VillegasFull Stack .NET DeveloperCommented:
Also you have this method:
MyListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);

Open in new window

and:
MyListView.AutoResizeColumn(...);

Open in new window


Regards.
0

Featured Post

The new generation of project management tools

With monday.com’s project management tool, you can see what everyone on your team is working in a single glance. Its intuitive dashboards are customizable, so you can create systems that work for you.

  • 3
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now