Print Page | Close Window

Problem with ListView Subitem

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=14970
Printed Date: 04 July 2024 at 8:17pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Problem with ListView Subitem
Posted By: pernia
Subject: Problem with ListView Subitem
Date Posted: 14 August 2009 at 12:49am

hi
i use cj 12.0
my wonderful problem is it that how i can add an icon to a listview subitem in report mode?
i have no problem to adding icon to listview item but seems in subitems not supported !!!!!

    ListView1.IconSize = 16
    ListView1.Icons.LoadIcon "F:\icon1.ico", 1, xtpImageNormal
    ListView1.ListItems.Add , , "nitza.ico", 1

does anybody have a code advise to add an icon to listview subitem?

  ListView1.ListItems(1).ListSubItems(1).icon????   [doesn't work]
  ListView1.ListItems(1).SubItems(1).icon????   [doesn't work]

  ListView1.ListItems(1).ListSubItems.Add ([index],[key],[text])   [doesn't work too]
 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net