473,387 Members | 3,821 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

ListView Label Lenth in Detail Mode

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
Sep 10 '08 #1
3 2188
On Sep 10, 2:29*pm, NvrBst <nvr...@gmail.comwrote:
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.
Sep 11 '08 #2
On Sep 11, 11:45*am, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.comwrote:
On Sep 10, 2:29*pm, NvrBst <nvr...@gmail.comwrote:
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.
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
Sep 12 '08 #3
On Sep 11, 11:45*am, "Ignacio Machin ( .NET/ C# MVP )"
<ignacio.mac...@gmail.comwrote:
On Sep 10, 2:29*pm, NvrBst <nvr...@gmail.comwrote:
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.
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 -_-.
Sep 12 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: David Miller | last post by:
Hello, I posted this to DotNet.Framework.Controls a week ago or so and got no response, so now I will repost it here to see if anyone here knows anything about it... I have an application...
19
by: Owen T. Soroke | last post by:
Using VB.NET I have a ListView with several columns. Two columns contain integer values, while the remaining contain string values. I am confused as to how I would provide functionality to...
3
by: Rob Richardson | last post by:
Greetings! I am attempting to display data in tabular form using a ListView control in detail mode. This is for a program I originally wrote in VB6. In VB6, I would add an item to the...
3
by: OpticTygre | last post by:
Are there any good tutorials out on the net that explains the listview control with great detail? Things like drag-drop features, icon additions, etc...?
0
by: George | last post by:
This is driving me crazy. I have a listview that has LabelEdit set to true. In the AfterLabelEdit event, I do my validation on the label text. If the label isn't valid, it sets e.canceledit = true...
1
by: The Confessor | last post by:
I currently have a listbox in my program which I populate with data from a random access file as follows: For T = 1 To HighestPointID FileGet(1, Point(T), T) ListBox_Point.Items.Add(T & " Lat:...
4
by: gene kelley | last post by:
I had a VB6 app that used a third party ListView control to simply display various recordsets. The control had a VirtualMode which I used for this display. Now in VB2005, I want to do the same...
4
by: Brian Gaze | last post by:
I have created a ListView control and have bound this to a datasource. Within the ItemTemplate of the ListView I have added another ListViewControl which is databound in the code behind. The idea...
0
by: Marius Manolea | last post by:
Hi, I have a strange problem, I don't receive any modifications from listview in edit mode (OldValues & NewValues are empty) <asp:ListView ID="lvEditPersonRoles" runat="server"...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.