Код:
Код: Выделить всё
ListViewItem listViewItem = new ListViewItem(new string[]{thospot.Name, thospot.City});
listView1.Items.Add(listViewItem);
2. почему выделение происходит только по нажатию на сам текст, нужно чтобы на всю строку:
Код:
Код: Выделить всё
private void listView1_ItemActivate(object sender, EventArgs e)
{
int i = ((ListView)sender).SelectedIndices[0];
FormHotspotDetail formHotspotDetail = new FormHotspotDetail(_thotspots, i);
formHotspotDetail.Show();
}