J jtare Active Member Licensed User Longtime User Aug 6, 2016 #1 Hi, Im trying to use buttons in my Custom List View but I could not figure out how to handle the clicks, I will like to know from what item position the click come from, so I can take the action required to that item position. Is this posible?
Hi, Im trying to use buttons in my Custom List View but I could not figure out how to handle the clicks, I will like to know from what item position the click come from, so I can take the action required to that item position. Is this posible?
mangojack Expert Licensed User Longtime User Aug 6, 2016 #2 ?? .. the downloaded class example contained a button click code. If you have added the button in Designer to clv layout ... EventName property = Button1 Code: Copy Sub Button1_Click Dim index As Int = clv1.GetItemFromView(Sender) Dim pnl As Panel = clv1.GetPanel(index) Log($"Item Index = ${index} Item value = ${clv1.GetValue(index)}"$) End Sub If you have added the clv views in code .. ensure you have set the EventName in Button1.Initialize("Button1") Last edited: Aug 6, 2016 Upvote 0
?? .. the downloaded class example contained a button click code. If you have added the button in Designer to clv layout ... EventName property = Button1 Code: Copy Sub Button1_Click Dim index As Int = clv1.GetItemFromView(Sender) Dim pnl As Panel = clv1.GetPanel(index) Log($"Item Index = ${index} Item value = ${clv1.GetValue(index)}"$) End Sub If you have added the clv views in code .. ensure you have set the EventName in Button1.Initialize("Button1")
J jtare Active Member Licensed User Longtime User Aug 6, 2016 #3 Thanks, I download it a few month ago and completely forgot about it Upvote 0