[VB.NET] Select entire line ListView

Solved
Sandriine Posted messages 1400 Status Member -  
 gress -
Hello everyone,

I am developing an application in VB.NET.

I have a ListView with 3 columns where data is displayed, and when I right-click on a line, only the leftmost column item is selected.

How can I make the entire row selected?

I am at your disposal for more details if necessary.

Thank you,
Configuration: Windows XP Firefox 2.0.0.14

3 answers

  1. Teatimerelax Posted messages 150 Status Member 29
     
    Hi Sandrine,

    I'm doing C#, but it should be the same analogue.
    We need to set the FullRowSelect property of the ListView control to "True".

    We can do it directly in Visual Studio on the properties window of the items, if you use it.

    here you go
    --

    Is there a problem? What problem?
    There’s no problem anymore!
    11
    1. kiche.noureddine
       
      I have a question about ListView, how to implement a right-click on the selected row, and thanks in advance
      0
  2. Dr Fredieu
     
    A digging up just to say "Thanks"
    1