Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VB.Net - select whole line in a multicolumn ListView and not only first item

I have a ListView in VB.Net. I want to use it to display a table of data. However I want to be able to click on a row and select it. The component allows me to select a row only by clicking on the first item of each row.

  • Can I change that?
  • Is there a better component to display tables? (I've already tried the DataGridView. I don't like it's appearance)
like image 448
Stefanos Kargas Avatar asked Feb 23 '11 13:02

Stefanos Kargas


2 Answers

This should simply be a matter of setting FullRowSelect on the control to be True.

like image 56
AakashM Avatar answered Nov 14 '22 14:11

AakashM


Change the FullRowSelect property to True.

like image 38
Hans Passant Avatar answered Nov 14 '22 14:11

Hans Passant