TotalInsanity
Programmer
Hello All.
Can one of you experts help me out here.
I have a list box in my development and I want to obtain the actual text that is stored at one of its indexes and place into a string.
Basically I am trying to colour each row dependant upon what text it contains by overriding the list boxes 'drawItem' function.
I have been trying to use:
which puts a string called: "SYSTEM.DATA>DATAROWVIEW" into the strPriority string declared above.
My listbox is being filled within the FormLoad event and is being filled by using a dataset.
Can anyone please point out where I am going wrong and whymy sting does not have the actual text from the list box??
Thanks in advance Gurus...
Can one of you experts help me out here.
I have a list box in my development and I want to obtain the actual text that is stored at one of its indexes and place into a string.
Basically I am trying to colour each row dependant upon what text it contains by overriding the list boxes 'drawItem' function.
I have been trying to use:
Code:
string strPriority = listbox1.Items[e.Index].ToString();
which puts a string called: "SYSTEM.DATA>DATAROWVIEW" into the strPriority string declared above.
My listbox is being filled within the FormLoad event and is being filled by using a dataset.
Can anyone please point out where I am going wrong and whymy sting does not have the actual text from the list box??
Thanks in advance Gurus...