Click here to Skip to main content
15,914,395 members
Home / Discussions / C#
   

C#

 
GeneralRe: ListView in C# Pin
mrithula824-Mar-09 20:56
mrithula824-Mar-09 20:56 
GeneralRe: ListView in C# Pin
King Julien24-Mar-09 21:23
King Julien24-Mar-09 21:23 
GeneralRe: ListView in C# Pin
mrithula824-Mar-09 21:36
mrithula824-Mar-09 21:36 
GeneralRe: ListView in C# Pin
King Julien24-Mar-09 23:00
King Julien24-Mar-09 23:00 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 0:11
mrithula825-Mar-09 0:11 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 0:55
King Julien25-Mar-09 0:55 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 19:25
mrithula825-Mar-09 19:25 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 20:08
King Julien25-Mar-09 20:08 
when you add the subitem for an item in the listview the sequence starts always from left to right.
Not sure what mistake you are doing.

But you can try this...

To add the subitem, for the STATUS column header, use the same item object which you used to add to the listview control.

i.e.
if item 1 in the Server header is added by using lvi then,
ListviewItem lvi = new ListViewItem();
lvi.SubItem.Add("Started");
ListView.Items.Add(lvi);


This should work i believe.

Have a Happy Coding.....

GeneralRe: ListView in C# Pin
mrithula825-Mar-09 20:18
mrithula825-Mar-09 20:18 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 20:49
King Julien25-Mar-09 20:49 
GeneralRe: ListView in C# Pin
mrithula825-Mar-09 21:08
mrithula825-Mar-09 21:08 
GeneralRe: ListView in C# Pin
King Julien25-Mar-09 21:30
King Julien25-Mar-09 21:30 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 1:08
mrithula826-Mar-09 1:08 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 1:24
King Julien26-Mar-09 1:24 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 1:32
mrithula826-Mar-09 1:32 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 1:56
King Julien26-Mar-09 1:56 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 5:59
mrithula826-Mar-09 5:59 
GeneralRe: ListView in C# Pin
mrithula826-Mar-09 19:00
mrithula826-Mar-09 19:00 
GeneralRe: ListView in C# Pin
King Julien26-Mar-09 19:22
King Julien26-Mar-09 19:22 
GeneralRe: ListView in C# Pin
mrithula829-Mar-09 0:51
mrithula829-Mar-09 0:51 
AnswerRe: ListView in C# [modified] Pin
Xmen Real 24-Mar-09 20:35
professional Xmen Real 24-Mar-09 20:35 
QuestionRe: ListView in C# Pin
0x3c024-Mar-09 21:08
0x3c024-Mar-09 21:08 
AnswerRe: ListView in C# Pin
Xmen Real 24-Mar-09 21:12
professional Xmen Real 24-Mar-09 21:12 
QuestionI have this error (Specified cast is not valid.) Pin
malkan Rahim Nazari24-Mar-09 19:45
malkan Rahim Nazari24-Mar-09 19:45 
AnswerRe: I have this error (Specified cast is not valid.) Pin
Christian Graus24-Mar-09 20:26
protectorChristian Graus24-Mar-09 20:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.