• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1034
  • Last Modified:

VB.Net: Hide ListView Column

Hi Experts,

How can I hide a column in a ListView from the user.

Because the column that I am trying to hide has the primary key, which is not required for the user to see it. But I require that to filter queries according to the values selected by the user on the ListView.

Thanks in advance.
0
baabaa_nl
Asked:
baabaa_nl
1 Solution
 
AnuroopsunddCommented:
You can set width of that particular Column to 0.

Me.ListView1.Columns(0).Width = 0
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now