Link to home
Start Free TrialLog in
Avatar of Peter Kiers
Peter KiersFlag for Netherlands

asked on

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
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

The column is too narrow - widen the column.
Avatar of Peter Kiers

ASKER

Isn't possible to autosize the column.

Peter
ASKER CERTIFIED SOLUTION
Avatar of AndyAinscow
AndyAinscow
Flag of Switzerland image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
be back later
Hmm, still the same problem.

Peter
Also you have this method:
MyListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);

Open in new window

and:
MyListView.AutoResizeColumn(...);

Open in new window


Regards.