>Hi everybody!
>Does anybody know how can I disable ListItems(i) in MS ListView with report layout. I want under the certain condition to greyout and make item unselectable
>analog "\" in foxpro?
>Thanks.
You can use the Ghosted property of a listitem object to "disable" an item. For this property to be apparent to the user you also need to add a smallicon to the item. The icon itself will appear dimmed to the user, but not the text. The user can still click on the item, but you can capture that on the Itemclick() event by checking the ghosted property.
Use an image list control and the smallicon property of the listitem. For more info on that see this MSKB article:
http://support.microsoft.com/support/kb/articles/Q170/1/46.ASPHTH