ListView Control not showing entire string text - Windows Forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.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.Length > len

len = DL.array_view.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
 
Hi Jasim,

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

Can it be that?

Cor
 
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
 
Back
Top