Peter Kiers
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
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;
}
//*-----------------------------------------------------------*//
Example1.jpg
The column is too narrow - widen the column.
ASKER
Isn't possible to autosize the column.
Peter
Peter
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
be back later
ASKER
Hmm, still the same problem.
Peter
Peter
Also you have this method:
Regards.
MyListView.AutoResizeColumns(ColumnHeaderAutoResizeStyle.ColumnContent);
and:MyListView.AutoResizeColumn(...);
Regards.