Click here to Skip to main content
15,881,248 members
Home / Discussions / C#
   

C#

 
GeneralListViewItem.SubItems Problem Pin
half-life30-Jan-08 0:03
half-life30-Jan-08 0:03 
GeneralRe: ListViewItem.SubItems Problem Pin
Gareth H30-Jan-08 0:10
Gareth H30-Jan-08 0:10 
GeneralRe: ListViewItem.SubItems Problem Pin
half-life30-Jan-08 0:54
half-life30-Jan-08 0:54 
GeneralRe: ListViewItem.SubItems Problem Pin
J$30-Jan-08 5:48
J$30-Jan-08 5:48 
GeneralRe: ListViewItem.SubItems Problem Pin
half-life30-Jan-08 8:19
half-life30-Jan-08 8:19 
GeneralRe: ListViewItem.SubItems Problem Pin
J$30-Jan-08 8:24
J$30-Jan-08 8:24 
GeneralRe: ListViewItem.SubItems Problem Pin
half-life30-Jan-08 8:34
half-life30-Jan-08 8:34 
GeneralRe: ListViewItem.SubItems Problem Pin
DaveyM6930-Jan-08 10:52
professionalDaveyM6930-Jan-08 10:52 
Just created a new app, added a listview with 4 columns and set to details view as you said.

Pasted your code and altered the UseItemSytleForSubItems to false and it worked perfectly!

private void Form1_Load(object sender, EventArgs e)
        {
            string[] array = { "A", "C", "D", "E" };
            ListViewItem lvi = new ListViewItem(array);
            lvi.UseItemStyleForSubItems = false;
            lvi.SubItems[2].ForeColor = Color.Blue;
            listView1.Items.Add(lvi);
        }

GeneralRe: ListViewItem.SubItems Problem Pin
half-life30-Jan-08 11:00
half-life30-Jan-08 11:00 
QuestionHow to get version of the installer-project Pin
Ariadne29-Jan-08 23:47
Ariadne29-Jan-08 23:47 
AnswerRe: How to get version of the installer-project Pin
sathish s30-Jan-08 0:40
sathish s30-Jan-08 0:40 
QuestionRe: How to get version of the installer-project Pin
Ariadne30-Jan-08 2:22
Ariadne30-Jan-08 2:22 
AnswerRe: How to get version of the installer-project Pin
Ariadne1-Feb-08 0:08
Ariadne1-Feb-08 0:08 
GeneralConstraints on generic type parameters Pin
N a v a n e e t h29-Jan-08 23:26
N a v a n e e t h29-Jan-08 23:26 
AnswerRe: Constraints on generic type parameters Pin
Sun Rays29-Jan-08 23:42
Sun Rays29-Jan-08 23:42 
GeneralRe: Constraints on generic type parameters Pin
N a v a n e e t h30-Jan-08 0:26
N a v a n e e t h30-Jan-08 0:26 
GeneralRe: Constraints on generic type parameters Pin
Sun Rays30-Jan-08 0:37
Sun Rays30-Jan-08 0:37 
GeneralRe: Constraints on generic type parameters Pin
CKnig30-Jan-08 0:42
CKnig30-Jan-08 0:42 
GeneralRe: Constraints on generic type parameters Pin
N a v a n e e t h30-Jan-08 1:01
N a v a n e e t h30-Jan-08 1:01 
GeneralRe: Constraints on generic type parameters Pin
CKnig30-Jan-08 1:07
CKnig30-Jan-08 1:07 
GeneralRe: Constraints on generic type parameters Pin
N a v a n e e t h30-Jan-08 1:12
N a v a n e e t h30-Jan-08 1:12 
GeneralRe: Constraints on generic type parameters Pin
Scott Dorman30-Jan-08 16:38
professionalScott Dorman30-Jan-08 16:38 
Generalproperty of image Pin
justintimberlake29-Jan-08 23:23
justintimberlake29-Jan-08 23:23 
Generaladd runtime textbox in datagrid in c#.net Pin
monika_vasvani29-Jan-08 22:32
monika_vasvani29-Jan-08 22:32 
GeneralRe: add runtime textbox in datagrid in c#.net Pin
sathish s29-Jan-08 22:56
sathish s29-Jan-08 22:56 

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.