ListView Label Lenth in Detail Mode

N

NvrBst

I have ListView in Detail Mode and the length of each item is cut off
at 259 characters. The "listView1.Items[SelectedItem].Text" contains
the entire string, however, just the display is truncated at 259
characters. Is there a way to increase this?

Thanks
 
I

Ignacio Machin ( .NET/ C# MVP )

I have ListView in Detail Mode and the length of each item is cut off
at 259 characters.  The "listView1.Items[SelectedItem].Text" contains
the entire string, however, just the display is truncated at 259
characters.  Is there a way to increase this?

Thanks

Is this stated in the docs?

It might be a problem with the nuderlying unmanaged control.
 
N

NvrBst

I have ListView in Detail Mode and the length of each item is cut off
at 259 characters.  The "listView1.Items[SelectedItem].Text" contains
the entire string, however, just the display is truncated at 259
characters.  Is there a way to increase this?

Is this stated in the docs?

It might be a problem with the nuderlying unmanaged control.

Ahh your right, I just noticed that when I make a "new
ListViewItem(string ...)" intellisence gives me "text: The text to
display for the item, this should not exced 259 characters". I think
it probably has to do with the listview underneath the .NET wrapper as
well; I'll just try to break up my lines of text into meaningful sub
parts, or maybe try switching to DataGridView again which doesn't have
this problem (I used it initally, but it never liked adding a lot of
empty rows in virtual mode...). Was taking up ~80MB memory while the
ListView with the same amount of virtual rows was ~10MB; but I didn't
play with DGV too much, maybe I'll try again.

NB
 
N

NvrBst

I have ListView in Detail Mode and the length of each item is cut off
at 259 characters.  The "listView1.Items[SelectedItem].Text" contains
the entire string, however, just the display is truncated at 259
characters.  Is there a way to increase this?

Is this stated in the docs?

It might be a problem with the nuderlying unmanaged control.

Also! I noticed, a bug I think, that when I have the ListView, with
the normal font (Microsoft Sans Serif 8.25) everythings fine, but if I
changed the font to a Mono_Width font (IE Courier New 8.25), it
constantly scrolls up by one or two element each time the VirtualSize
is increased or decreased (Conditions: you need to not be at the top
of the list, and you can't have a selected element near where your
viewing). If I change the font size to 9 for Courier it works fine,
but any size smaller than that doesn't work -_-.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top