Rod
Member
Hi Guys,
Im pretty new to programming, I have recently taken a new job as software developer after teaching myself VB and SQL code.
I have a problem....
I want to add icons to the rows in the 8th column of a ListView control, the icons should change depending on certain conditions.
So...
My ListView has a column called "Due Date", I want to display 1 of 6 icons next to the text items depending on how many days are left until it is due. I can write a For Loop and a Function to get which item should be displayed, no problem, but before I do that, I need to just display any item to see that it will work!!
The ListView items are taken from an SQL database, so can we add the icons after they have been filled? I can add items to the first column by:
lvContactSessions.items(2).imageindex = 1
lvContactSessions.items(1).imageindex = 3
This produces:
So my question is simply, how do I get this in the "Due Date" column?
Sorry if I'm waffling a bit!!
Thanks in advance,
Rod
Im pretty new to programming, I have recently taken a new job as software developer after teaching myself VB and SQL code.
I have a problem....
I want to add icons to the rows in the 8th column of a ListView control, the icons should change depending on certain conditions.
So...
My ListView has a column called "Due Date", I want to display 1 of 6 icons next to the text items depending on how many days are left until it is due. I can write a For Loop and a Function to get which item should be displayed, no problem, but before I do that, I need to just display any item to see that it will work!!
The ListView items are taken from an SQL database, so can we add the icons after they have been filled? I can add items to the first column by:
lvContactSessions.items(2).imageindex = 1
lvContactSessions.items(1).imageindex = 3
This produces:
So my question is simply, how do I get this in the "Due Date" column?
Sorry if I'm waffling a bit!!
Thanks in advance,
Rod