below I have some code to get the index from the selected row in a listView. But this only works if the user clicks on the first column. But if I have four columns, how would I do to let the user click anywhere on a row of the listView?
private void lvRegAnimals_SelectedIndexChanged(object sender, EventArgs e)
{
int index = lvRegAnimals.FocusedItem.Index;
// Code here to pass the index to method....
}
You have to set the
ListView.FullRowSelectto true.