Notifications
Clear all

[Closed] Listview subItem Index

Hey everyone,
Is there a way to return a value of a subItem’s column from a dotnet listview? It’s very easy to find out its row, but having a hard time figuring out its exact column. Maybe I’m overlooking something.

2 Replies

on lv MouseClick theClick do
(
local theItem = lv.GetItemAt theClick.x theClick.y
local theRowIndex = theItem.Index + 1
local theSubItem = (theItem.GetSubItemAt theClick.x theClick.y)
local theColIndex = ((theSubItem.name as integer))
htest = [theRowIndex,theColIndex]

)

oh: full row select needs to be on too i think…

nabbed from one of Bobo’s Scripts

ah ha! Thank you very much!