PDA

View Full Version : Listview subItem Index


labbejason
02-28-2009, 10:17 PM
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.

SoLiTuDe
02-28-2009, 11:10 PM
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

labbejason
03-01-2009, 12:42 AM
ah ha! Thank you very much!

CGTalk Moderation
03-01-2009, 12:42 AM
This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.