473,396 Members | 1,789 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,396 software developers and data experts.

ListView Control not showing entire string text - Windows Forms

hi all

i ran into thi sproblem this monday and still havent been able to figure out why the list view control is not showing the complete text string

the original strings i want to be displayed in the list view are more than 350 chars long, but it only displays 259 chars of each string. BUT when i extract the string values from the control it DOES give me complete strings. i have tried to increase the column width but nothing happens

Can anyone Please help me with this as soon as possible

THANX in advance

COde is as below

################################################## ##

public void FillListView(

int len = 0
for (int i=0; i<DL.TotalRecords; i++

ListViewItem li
li = new ListViewItem()
li.Text = DL.array_view[i].ToString()
Console.WriteLine("li Value is : " + li.Text.ToString())
Console.WriteLine("li Length is : " + li.Text.Length.ToString())
li.ForeColor=System.Drawing.Color.Green
if (DL.array_view[i].Length > len

len = DL.array_view[i].Length

li.EnsureVisible()
listView1.Items.Add(li)

Console.WriteLine("max length is : " + len.ToString())
listView1.Columns.Add("", 20000, HorizontalAlignment.Left)
listView1.BackColor = System.Drawing.Color.Beige
Jul 21 '05 #1
2 2130
Hi Jasim,

When there is a 00 byte in it, it stops to show the information.

Can it be that?

Cor
Jul 21 '05 #2
hi

Yes i have checked it its not that .. :

Please do let me know if you know anything else about it or if you know any work-around for this matter

Thanx again

-jasim
Jul 21 '05 #3

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

Similar topics

2
by: Anushya devi | last post by:
Hi All I used listview and tried to update it by using Addrange. When the number of items is less, it works fine.. But I need to update nearly 200,000 items and it hangs. Also i need to add...
0
by: Martin Streller | last post by:
Hello, The code below represents a simple ownerdrawn, Listview class in C#. Its purpose is to avoid the flicker of the MS ListView. So I can't fall back to their one. Does anybody know why I...
4
by: Paddy | last post by:
How do I select a subitem from a listview after clicking on the first column? Couldn't find it in MSDN. Thank you. Paddy.
0
by: willow1480 | last post by:
I am developing a small little Service Control Application. I am using a listview control with checkboxes and getting the list of services I want to control from a text file. When you check a...
2
by: Peter | last post by:
Hi, I have a problem with Listview using checkboxes. If i check items by code BEFORE the form is shown the Listview.Items are confused during the ItemChecked Event !!! After showing the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.