Last post Dec 02, 2019 06:38 AM by Khuram.Shahzad
Dec 02, 2019 06:28 AM|TRIMS30|LINK
I have a Listview control containing some data and two buttons (btnEDIT and btnCALC)
The command line Im using for selection and button clicks is:
Protected Sub ListView1_SelectedIndexChanged(ByVal sender As Object, ByVal e As EventArgs) Handles ListView1.SelectedIndexChanged, ListView1.ItemCommand
When event occurs due to a button click I can see name of button causing event in e (CommandName)
How do I access the name of button that was clicked so I can act on that button and process selected row of listview?
Help is appreciated.
Dec 02, 2019 06:38 AM|Khuram.Shahzad|LINK
Can you please post the code that will help you to understand your requirements,
As per defination:
The SelectedIndexChanged event is raised when an item's Select button is clicked, after
the ListView control handles the select operation. (A Select button is a button control whose CommandName property
is set to "Select".) This enables you to perform a custom routine whenever this event occurs, such as updating a status label with information about the currently selected item.